public static function RecursivePlaceholdersTest::callback in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php \Drupal\Tests\Core\Render\RecursivePlaceholdersTest::callback()
- 9 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 1173 - Contains \Drupal\Tests\Core\Render\RendererPlaceholdersTest.
Class
Namespace
Drupal\Tests\Core\RenderCode
public static function callback($animal) {
return [
'another' => [
'#create_placeholder' => TRUE,
'#lazy_builder' => [
'Drupal\\Tests\\Core\\Render\\PlaceholdersTest::callback',
[
$animal,
],
],
],
];
}