Advertising sustains the DA. Ads are hidden for members. Join today
Drupal APIs
- Access Policy API
- AJAX API
- Authentication API
- Batch API
- Block API
- Cache API
- (deprecated) CKEditor 4 API
- CKEditor 5 API
- Configuration API
- Database API
- Entity API
- Filter API
- Form API
- JavaScript API
- Layout API
- Logging API
- Menu API
- Middleware API
- Migrate API
- Plugin API
- RESTful Web Services API
- Render API
- Responses
- Routing system
- Runtime Assertions
- Serialization API
- Services and dependency injection
- State API
- Text Editor API
- Tour API
- Translation API
- Typed Data API
- Update API
- Command-Line Interface (CLI) API
- HTMX
- Icon API
- Token API
Render API
Drupal 8's Render API roughly consists of two parts:
- The render pipeline — which is format-agnostic (HTML, JSON, anything)
- Render arrays, which are a representation of a HTML page. They allow nesting (like HTML) and altering (necessary for Drupal's flexibility)
This guide provides comprehensive detailed information about both.
Cacheability of render arrays
Short version in the API documentation: Render API overview: Caching
Bubbleable metadata
The parent page explains cacheability in general. This looks in detail at how render arrays bubble cacheability.
Auto-placeholdering
Drupal 8's Render API automatically creates placeholders of highly dynamic parts of a page, to have the best possible cacheability.
Render arrays
"Render Arrays" or "Renderable Arrays" are the building blocks of a Drupal page.
Render elements
Render elements (including form input elements) in Drupal
The Drupal 8 render pipeline
How Drupal renders pages