function PlaceholderStrategyInterface::processPlaceholders

Same name in other branches
  1. 9 core/lib/Drupal/Core/Render/Placeholder/PlaceholderStrategyInterface.php \Drupal\Core\Render\Placeholder\PlaceholderStrategyInterface::processPlaceholders()
  2. 8.9.x core/lib/Drupal/Core/Render/Placeholder/PlaceholderStrategyInterface.php \Drupal\Core\Render\Placeholder\PlaceholderStrategyInterface::processPlaceholders()
  3. 11.x core/lib/Drupal/Core/Render/Placeholder/PlaceholderStrategyInterface.php \Drupal\Core\Render\Placeholder\PlaceholderStrategyInterface::processPlaceholders()

Processes placeholders to render them with different strategies.

Parameters

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 value

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.

File

core/lib/Drupal/Core/Render/Placeholder/PlaceholderStrategyInterface.php, line 24

Class

PlaceholderStrategyInterface
Provides an interface for defining a placeholder strategy service.

Namespace

Drupal\Core\Render\Placeholder

Code

public function processPlaceholders(array $placeholders);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.