You are here

public static function BubblingTest::bubblingNestedPreRenderCached in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php \Drupal\Tests\Core\Render\BubblingTest::bubblingNestedPreRenderCached()
  2. 10 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

BubblingTest

Namespace

Drupal\Tests\Core\Render

Code

public static function bubblingNestedPreRenderCached($elements) {
  \Drupal::state()
    ->set('bubbling_nested_pre_render_cached', TRUE);
  return $elements;
}