You are here

public static function BubblingTest::bubblingNestedPreRenderUncached in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php \Drupal\Tests\Core\Render\BubblingTest::bubblingNestedPreRenderUncached()

#pre_render callback for testBubblingWithPrerender().

File

core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php, line 638
Contains \Drupal\Tests\Core\Render\RendererBubblingTest.

Class

BubblingTest

Namespace

Drupal\Tests\Core\Render

Code

public static function bubblingNestedPreRenderUncached($elements) {
  \Drupal::state()
    ->set('bubbling_nested_pre_render_uncached', TRUE);
  $elements['#markup'] = 'Nested!';
  return $elements;
}