You are here

public static function RendererCallbackTest::renderCallback in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Render/RendererCallbackTest.php \Drupal\Tests\Core\Render\RendererCallbackTest::renderCallback()
  2. 10 core/tests/Drupal/Tests/Core/Render/RendererCallbackTest.php \Drupal\Tests\Core\Render\RendererCallbackTest::renderCallback()

A test render callback.

File

core/tests/Drupal/Tests/Core/Render/RendererCallbackTest.php, line 70

Class

RendererCallbackTest
@coversDefaultClass \Drupal\Core\Render\Renderer @group Render

Namespace

Drupal\Tests\Core\Render

Code

public static function renderCallback($element = []) {
  return $element;
}