Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PlaceholderStrategyInterface.php

function 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.

3 methods override PlaceholderStrategyInterface::processPlaceholders()
BigPipeStrategy::processPlaceholders in core/modules/big_pipe/src/Render/Placeholder/BigPipeStrategy.php
Processes placeholders to render them with different strategies.
ChainedPlaceholderStrategy::processPlaceholders in core/lib/Drupal/Core/Render/Placeholder/ChainedPlaceholderStrategy.php
Processes placeholders to render them with different strategies.
SingleFlushStrategy::processPlaceholders in core/lib/Drupal/Core/Render/Placeholder/SingleFlushStrategy.php
Processes placeholders to render them with different strategies.

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);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal