You are here

public static function RenderCachePlaceholderInterface::postRenderCacheMultiCallback in Render cache 7.2

Generic #post_render_cache callback for getPlaceholder() with multi=TRUE.

This is useful to group several related elements together.

Parameters

array $element: The renderable array that contains the to be replaced placeholders.

array $contexts: An array keyed by function with the contexts as values.

Return value

array A renderable array with the placeholders replaced.

1 method overrides RenderCachePlaceholderInterface::postRenderCacheMultiCallback()
RenderCachePlaceholder::postRenderCacheMultiCallback in src/Cache/RenderCachePlaceholder.php
Generic #post_render_cache callback for getPlaceholder() with multi=TRUE.

File

src/Cache/RenderCachePlaceholderInterface.php, line 74
Contains \Drupal\render_cache\Cache\RenderCachePlaceholderInterface

Class

RenderCachePlaceholderInterface
Defines an interface for #post_render_cache placeholders.

Namespace

Drupal\render_cache\Cache

Code

public static function postRenderCacheMultiCallback(array $element, array $contexts);