You are here

public static function RenderCachePlaceholderInterface::postRenderCacheCallback in Render cache 7.2

Generic #post_render_cache callback for getPlaceholder().

Parameters

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

array $context: An array with the following keys:

  • function: The function to call.
  • args: The arguments to pass to the function.

Return value

array A renderable array with the placeholder replaced.

1 method overrides RenderCachePlaceholderInterface::postRenderCacheCallback()
RenderCachePlaceholder::postRenderCacheCallback in src/Cache/RenderCachePlaceholder.php
Generic #post_render_cache callback for getPlaceholder().

File

src/Cache/RenderCachePlaceholderInterface.php, line 59
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 postRenderCacheCallback(array $element, array $context);