function RendererTest::providerRenderTwice
Provides a list of render array iterations.
Return value
array An array of render arrays.
File
-
core/
tests/ Drupal/ Tests/ Core/ Render/ RendererTest.php, line 725
Class
Namespace
Drupal\Tests\Core\RenderCode
public static function providerRenderTwice() {
return [
[
[
'#markup' => 'kittens',
'#cache' => [
'tags' => [
'kittens-147',
],
],
],
],
[
[
'child' => [
'#markup' => 'kittens',
'#cache' => [
'tags' => [
'kittens-147',
],
],
],
],
],
[
[
'#render_children' => TRUE,
'child' => [
'#markup' => 'kittens',
'#cache' => [
'tags' => [
'kittens-147',
],
],
],
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.