Defines an interface for turning a render array into a placeholder.
This encapsulates logic related to generating placeholders.
Makes it possible to determine whether a render array can be placeholdered (it can be reconstructed independently of the request context), whether a render array should be placeholdered (its cacheability meets the conditions), and to create a placeholder.
Hierarchy
- interface \Drupal\Core\Render\PlaceholderGeneratorInterface
See also
\Drupal\Core\Render\RendererInterface
File
- core/lib/Drupal/Core/Render/PlaceholderGeneratorInterface.php, line 17
Namespace
Drupal\Core\Render
Members
Name | Modifiers | Type | Description |
---|---|---|---|
PlaceholderGeneratorInterface::canCreatePlaceholder | public | function | Analyzes whether the given render array can be placeholdered. |
PlaceholderGeneratorInterface::createPlaceholder | public | function | Turns the given element into a placeholder. |
PlaceholderGeneratorInterface::shouldAutomaticallyPlaceholder | public | function | Whether the given render array should be automatically placeholdered. |
Please login to continue.