public function RendererCallbackTest::__invoke in Drupal 8
Same name and namespace in other branches
- 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 81
Class
- RendererCallbackTest
- @coversDefaultClass \Drupal\Core\Render\Renderer @group Render @group legacy Once Renderer::doCallback() throws exceptions this will no longer be a legacy test.
Namespace
Drupal\Tests\Core\RenderCode
public function __invoke($element = []) {
return $element;
}