function PlaceholdersTest::callbackNonArrayReturn

Same name and namespace in other branches
  1. 10 core/tests/Drupal/Tests/Core/Render/RendererTestBase.php \Drupal\Tests\Core\Render\PlaceholdersTest::callbackNonArrayReturn()
  2. 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 337

Class

PlaceholdersTest

Namespace

Drupal\Tests\Core\Render

Code

public static function callbackNonArrayReturn() {
    return TRUE;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.