You are here

class RecursivePlaceholdersTest 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

Hierarchy

Expanded class hierarchy of RecursivePlaceholdersTest

See also

\Drupal\Tests\Core\Render\RendererPlaceholdersTest::testRecursivePlaceholder()

File

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

Namespace

Drupal\Tests\Core\Render
View source
class RecursivePlaceholdersTest {

  /**
   * #lazy_builder callback; bubbles another placeholder.
   *
   * @param string $animal
   *  An animal.
   *
   * @return array
   *   A renderable array.
   */
  public static function callback($animal) {
    return [
      'another' => [
        '#create_placeholder' => TRUE,
        '#lazy_builder' => [
          'Drupal\\Tests\\Core\\Render\\PlaceholdersTest::callback',
          [
            $animal,
          ],
        ],
      ],
    ];
  }

}

Members

Namesort descending Modifiers Type Description Overrides
RecursivePlaceholdersTest::callback public static function #lazy_builder callback; bubbles another placeholder.