class RecursivePlaceholdersTest in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php \Drupal\Tests\Core\Render\RecursivePlaceholdersTest
Hierarchy
- class \Drupal\Tests\Core\Render\RecursivePlaceholdersTest
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\RenderView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RecursivePlaceholdersTest:: |
public static | function | #lazy_builder callback; bubbles another placeholder. |