class TestPlaceholderingRenderCache
Same name in other branches
- 10 core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php \Drupal\Tests\Core\Render\TestPlaceholderingRenderCache
Hierarchy
- class \Drupal\Core\Render\RenderCache implements \Drupal\Core\Render\RenderCacheInterface
- class \Drupal\Core\Render\PlaceholderingRenderCache extends \Drupal\Core\Render\RenderCache
- class \Drupal\Tests\Core\Render\TestPlaceholderingRenderCache extends \Drupal\Core\Render\PlaceholderingRenderCache
- class \Drupal\Core\Render\PlaceholderingRenderCache extends \Drupal\Core\Render\RenderCache
Expanded class hierarchy of TestPlaceholderingRenderCache
File
-
core/
tests/ Drupal/ Tests/ Core/ Render/ RendererPlaceholdersTest.php, line 1206
Namespace
Drupal\Tests\Core\RenderView source
class TestPlaceholderingRenderCache extends PlaceholderingRenderCache {
/**
* The placeholder elements created during rendering.
*/
public array $placeholderElements = [];
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;
}
}
Members
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.