You are here

protected static function RenderCachePlaceholderMock::generatePlaceholder in Render cache 7.2

Generates a render cache placeholder.

@codeCoverageIgnore

Parameters

string $callback: The #post_render_cache callback that will replace the placeholder with its eventual markup.

array $context: An array providing context for the #post_render_cache callback. This array will be altered to provide a 'token' key/value pair, if not already provided, to uniquely identify the generated placeholder.

Return value

string The generated placeholder HTML.

Overrides RenderCachePlaceholder::generatePlaceholder

File

tests/src/Cache/RenderCachePlaceholderTest.php, line 285
Contains \Drupal\render_cache\Tests\Cache\RenderCachePlaceholderTest

Class

RenderCachePlaceholderMock

Namespace

Drupal\render_cache\Tests\Cache

Code

protected static function generatePlaceholder($callback, array &$context) {
  return static::$mock
    ->generatePlaceholder($callback, $context);
}