You are here

public function RendererCallbackTest::__invoke in Drupal 10

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

Implements magic method as a render callback.

File

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

Class

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

Namespace

Drupal\Tests\Core\Render

Code

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