You are here

public function SingleFlushStrategy::processPlaceholders in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Render/Placeholder/SingleFlushStrategy.php \Drupal\Core\Render\Placeholder\SingleFlushStrategy::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.

Overrides PlaceholderStrategyInterface::processPlaceholders

File

core/lib/Drupal/Core/Render/Placeholder/SingleFlushStrategy.php, line 22
Contains \Drupal\Core\Render\Placeholder\SingleFlushStrategy.

Class

SingleFlushStrategy
Defines the 'single_flush' placeholder strategy.

Namespace

Drupal\Core\Render\Placeholder

Code

public function processPlaceholders(array $placeholders) {

  // Return all placeholders as is; they should be rendered directly.
  return $placeholders;
}