BigPipeStrategy::processPlaceholders

public BigPipeStrategy::processPlaceholders(array $placeholders) 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 rende

BigPipeStrategy::NOJS_COOKIE

BigPipe no-JS cookie name. File core/modules/big_pipe/src/Render/Placeholder/BigPipeStrategy.php, line 65 Class BigPipeStrategy Defines the BigPipe placeholder strategy, to send HTML in chunks. Namespace Drupal\big_pipe\Render\Placeholder Code const NOJS_COOKIE = 'big_pipe_nojs';

BigPipeStrategy::generateBigPipePlaceholderId

protected static BigPipeStrategy::generateBigPipePlaceholderId($original_placeholder, array $placeholder_render_array) Generates a BigPipe placeholder ID. Parameters string $original_placeholder: The original placeholder. array $placeholder_render_array: The render array for a placeholder. Return value string The generated BigPipe placeholder ID. File core/modules/big_pipe/src/Render/Placeholder/BigPipeStrategy.php, line 257 Class BigPipeStrategy Defines the BigPipe placeholder strategy,

BigPipeStrategy::doProcessPlaceholders

protected BigPipeStrategy::doProcessPlaceholders(array $placeholders) Transforms placeholders to BigPipe placeholders, either no-JS or JS. Parameters array $placeholders: The placeholders to process. Return value array The BigPipe placeholders. File core/modules/big_pipe/src/Render/Placeholder/BigPipeStrategy.php, line 136 Class BigPipeStrategy Defines the BigPipe placeholder strategy, to send HTML in chunks. Namespace Drupal\big_pipe\Render\Placeholder Code protected function doProc

BigPipeStrategy::createBigPipeNoJsPlaceholder

protected static BigPipeStrategy::createBigPipeNoJsPlaceholder($original_placeholder, array $placeholder_render_array, $placeholder_must_be_attribute_safe = FALSE) Creates a BigPipe no-JS placeholder. Parameters string $original_placeholder: The original placeholder. array $placeholder_render_array: The render array for a placeholder. bool $placeholder_must_be_attribute_safe: Whether the placeholder must be safe for use in a HTML attribute (in case it's a placeholder for a HTML attribute value

BigPipeStrategy::createBigPipeJsPlaceholder

protected static BigPipeStrategy::createBigPipeJsPlaceholder($original_placeholder, array $placeholder_render_array) Creates a BigPipe JS placeholder. Parameters string $original_placeholder: The original placeholder. array $placeholder_render_array: The render array for a placeholder. Return value array The resulting BigPipe JS placeholder render array. File core/modules/big_pipe/src/Render/Placeholder/BigPipeStrategy.php, line 182 Class BigPipeStrategy Defines the BigPipe placeholder s

BigPipeStrategy::$sessionConfiguration

The session configuration. Type: \Drupal\Core\Session\SessionConfigurationInterface File core/modules/big_pipe/src/Render/Placeholder/BigPipeStrategy.php, line 72 Class BigPipeStrategy Defines the BigPipe placeholder strategy, to send HTML in chunks. Namespace Drupal\big_pipe\Render\Placeholder Code protected $sessionConfiguration;

BigPipeStrategy::$routeMatch

The current route match. Type: \Drupal\Core\Routing\RouteMatchInterface File core/modules/big_pipe/src/Render/Placeholder/BigPipeStrategy.php, line 86 Class BigPipeStrategy Defines the BigPipe placeholder strategy, to send HTML in chunks. Namespace Drupal\big_pipe\Render\Placeholder Code protected $routeMatch;

BigPipeStrategy::$requestStack

The request stack. Type: \Symfony\Component\HttpFoundation\RequestStack File core/modules/big_pipe/src/Render/Placeholder/BigPipeStrategy.php, line 79 Class BigPipeStrategy Defines the BigPipe placeholder strategy, to send HTML in chunks. Namespace Drupal\big_pipe\Render\Placeholder Code protected $requestStack;

BigPipeStrategy

Defines the BigPipe placeholder strategy, to send HTML in chunks. First: the BigPipe placeholder strategy only activates if the current request is associated with a session. Without a session, it is assumed this response is not actually dynamic: if none of the placeholders show session-dependent information, then none of the placeholders are uncacheable or poorly cacheable, which means the Page Cache (for anonymous users) can deal with it. In other words: BigPipe works for all authenticated use