3 namespace Drupal\Core\Render\Placeholder;
6 * Provides an interface for defining a placeholder strategy service.
8 interface PlaceholderStrategyInterface {
11 * Processes placeholders to render them with different strategies.
13 * @param array $placeholders
14 * The placeholders to process, with the keys being the markup for the
15 * placeholders and the values the corresponding render array describing the
16 * data to be rendered.
19 * The resulting placeholders, with a subset of the keys of $placeholders
20 * (and those being the markup for the placeholders) but with the
21 * corresponding render array being potentially modified to render e.g. an
22 * ESI or BigPipe placeholder.
24 public function processPlaceholders(array $placeholders);