function TestPlaceholderingRenderCache::createPlaceholderAndRemember

Same name in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php \Drupal\Tests\Core\Render\TestPlaceholderingRenderCache::createPlaceholderAndRemember()

Overrides PlaceholderingRenderCache::createPlaceholderAndRemember

File

core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php, line 1213

Class

TestPlaceholderingRenderCache

Namespace

Drupal\Tests\Core\Render

Code

protected function createPlaceholderAndRemember(array $rendered_elements, array $pre_bubbling_elements) {
    $placeholder_element = parent::createPlaceholderAndRemember($rendered_elements, $pre_bubbling_elements);
    $this->placeholderElements[] = $placeholder_element;
    return $placeholder_element;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.