function PlaceholdersTest::callbackNonArrayReturn
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Render/RendererTestBase.php \Drupal\Tests\Core\Render\PlaceholdersTest::callbackNonArrayReturn()
- 11.x core/tests/Drupal/Tests/Core/Render/RendererTestBase.php \Drupal\Tests\Core\Render\PlaceholdersTest::callbackNonArrayReturn()
A lazy builder callback that returns an invalid renderable.
Return value
bool TRUE, which is not a valid return value for a lazy builder.
File
-
core/
tests/ Drupal/ Tests/ Core/ Render/ RendererTestBase.php, line 360
Class
Namespace
Drupal\Tests\Core\RenderCode
public static function callbackNonArrayReturn() {
return TRUE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.