function BubblingTest::bubblingPlaceholder

Render API callback: Used for testing testBubblingWithPrerender().

This function is assigned as an #lazy_builder callback in.

File

core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php, line 627

Class

BubblingTest
Test class with implemented trusted callbacks.

Namespace

Drupal\Tests\Core\Render

Code

public static function bubblingPlaceholder($foo, $baz) : array {
  return [
    '#markup' => 'Placeholder!' . $foo . $baz,
  ];
}

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