You are here

public static function PlaceholdersTest::callbackNonArrayReturn in Drupal 10

Same name and namespace in other branches
  1. 9 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 336
Contains \Drupal\Tests\Core\Render\RendererTestBase.

Class

PlaceholdersTest

Namespace

Drupal\Tests\Core\Render

Code

public static function callbackNonArrayReturn() {
  return TRUE;
}