public static function BubblingTest::bubblingNestedPreRenderCached in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php \Drupal\Tests\Core\Render\BubblingTest::bubblingNestedPreRenderCached()
- 9 core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php \Drupal\Tests\Core\Render\BubblingTest::bubblingNestedPreRenderCached()
#pre_render callback for testBubblingWithPrerender().
File
- core/
tests/ Drupal/ Tests/ Core/ Render/ RendererBubblingTest.php, line 689 - Contains \Drupal\Tests\Core\Render\RendererBubblingTest.
Class
Namespace
Drupal\Tests\Core\RenderCode
public static function bubblingNestedPreRenderCached($elements) {
\Drupal::state()
->set('bubbling_nested_pre_render_cached', TRUE);
return $elements;
}