Upgraded drupal core with security updates
[yaffs-website] / web / core / lib / Drupal / Core / Render / Placeholder / PlaceholderStrategyInterface.php
1 <?php
2
3 namespace Drupal\Core\Render\Placeholder;
4
5 /**
6  * Provides an interface for defining a placeholder strategy service.
7  */
8 interface PlaceholderStrategyInterface {
9
10   /**
11    * Processes placeholders to render them with different strategies.
12    *
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.
17    *
18    * @return array
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.
23    */
24   public function processPlaceholders(array $placeholders);
25
26 }