public function RendererCallbackTest::__invoke in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Render/RendererCallbackTest.php \Drupal\Tests\Core\Render\RendererCallbackTest::__invoke()
- 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\RenderCode
public function __invoke($element = []) {
return $element;
}