interface PlaceholderStrategyInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Render/Placeholder/PlaceholderStrategyInterface.php \Drupal\Core\Render\Placeholder\PlaceholderStrategyInterface
Provides an interface for defining a placeholder strategy service.
Hierarchy
- interface \Drupal\Core\Render\Placeholder\PlaceholderStrategyInterface
Expanded class hierarchy of PlaceholderStrategyInterface
All classes that implement PlaceholderStrategyInterface
1 file declares its use of PlaceholderStrategyInterface
- HtmlResponsePlaceholderStrategySubscriber.php in core/
lib/ Drupal/ Core/ EventSubscriber/ HtmlResponsePlaceholderStrategySubscriber.php - Contains \Drupal\Core\EventSubscriber\HtmlResponsePlaceholderStrategySubscriber.
File
- core/
lib/ Drupal/ Core/ Render/ Placeholder/ PlaceholderStrategyInterface.php, line 13 - Contains \Drupal\Core\Render\Placeholder\PlaceholderStrategyInterface.
Namespace
Drupal\Core\Render\PlaceholderView source
interface PlaceholderStrategyInterface {
/**
* Processes placeholders to render them with different strategies.
*
* @param array $placeholders
* The placeholders to process, with the keys being the markup for the
* placeholders and the values the corresponding render array describing the
* data to be rendered.
*
* @return array
* The resulting placeholders, with a subset of the keys of $placeholders
* (and those being the markup for the placeholders) but with the
* corresponding render array being potentially modified to render e.g. an
* ESI or BigPipe placeholder.
*/
public function processPlaceholders(array $placeholders);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PlaceholderStrategyInterface:: |
public | function | Processes placeholders to render them with different strategies. | 2 |