Drupal Core APIs
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.
Creating a Custom (Programmatic) Block to Output HTML in Drupal
Recent content
-
1 hour 10 minutes ago
-
1 week ago
-
1 week 1 day ago
-
1 week 1 day ago
-
1 week 1 day ago
-
1 week 6 days ago
-
2 weeks 1 day ago
-
2 weeks 1 day ago
-
2 weeks 1 day ago
-
2 weeks 2 days ago