Drupal Core APIs
Understanding Cryptic Form Render Arrays in Drupal
I'll break down the key form render array properties in this Drupal 11 form. Here's what each # prefixed key does:
Core Form Properties
#type - Defines the render element type (e.g., 'form', 'date', 'submit', 'container') Render API Documentation
Understanding Caching in Drupal, Pt. 1
In Drupal 11, caching is not just a "setting" you turn on; it is a sophisticated, multi-layered system that handles everything from full-page snapshots for visitors to granular data objects for developers.
At a high level, the system is designed to ensure that if a piece of data has already been calculated once, it should never be calculated again unless it actually changes.
1. The Core Caching Modules
Drupal 11 uses three primary internal mechanisms to handle different types of traffic and content.
| Mechanism | Who it's for | How it works |
|---|---|---|
Creating an Event Subscriber in Drupal
It should: implement interface EventSubscriberInterface
- pass dependencies:
Creating a Custom Field Formatter Plugin in Drupal
Creating a custom Field Formatter in Drupal is a great way
Creating a Custom Views Filter Plugin in Drupal
Creating a custom Views Filter plugin in Drupal allows
Converting Routes or Raw URLs into Full URI and Link Objects in Drupal
In Drupal, the standard way to handle links is through
Creating a Custom Controller for JSON Responses in Drupal
In Drupal, creating a Controller for a JSON response invol
Creating a Batch Service for Long-running Processes in Drupal
Create a process (update a Node) that uses the batch API, and can be called either from a form, or from a drush command.
Recent Content
-
2 hours 58 minutes ago
-
6 days 1 hour ago
-
6 days 6 hours ago
-
1 week 1 day ago
-
1 week 1 day ago
-
1 week 1 day ago
-
1 week 2 days ago
-
1 week 4 days ago
-
1 week 4 days ago
-
2 weeks ago