You are here

public static function RecursivePlaceholdersTest::callback in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php \Drupal\Tests\Core\Render\RecursivePlaceholdersTest::callback()

#lazy_builder callback; bubbles another placeholder.

Parameters

string $animal: An animal.

Return value

array A renderable array.

File

core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php, line 1119
Contains \Drupal\Tests\Core\Render\RendererPlaceholdersTest.

Class

RecursivePlaceholdersTest

Namespace

Drupal\Tests\Core\Render

Code

public static function callback($animal) {
  return [
    'another' => [
      '#create_placeholder' => TRUE,
      '#lazy_builder' => [
        'Drupal\\Tests\\Core\\Render\\PlaceholdersTest::callback',
        [
          $animal,
        ],
      ],
    ],
  ];
}