public function TwigExtensionTestController::testFunctionRender in Drupal 9
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/twig_extension_test/src/TwigExtensionTestController.php \Drupal\twig_extension_test\TwigExtensionTestController::testFunctionRender()
Menu callback for testing Twig functions in a Twig template.
1 string reference to 'TwigExtensionTestController::testFunctionRender'
- twig_extension_test.routing.yml in core/
modules/ system/ tests/ modules/ twig_extension_test/ twig_extension_test.routing.yml - core/modules/system/tests/modules/twig_extension_test/twig_extension_test.routing.yml
File
- core/
modules/ system/ tests/ modules/ twig_extension_test/ src/ TwigExtensionTestController.php, line 31
Class
- TwigExtensionTestController
- Controller routines for Twig extension test routes.
Namespace
Drupal\twig_extension_testCode
public function testFunctionRender() {
return [
'#theme' => 'twig_extension_test_function',
];
}