function TwigExtensionTestController::testFunctionRender
Same name in other branches
- 8.9.x core/modules/system/tests/modules/twig_extension_test/src/TwigExtensionTestController.php \Drupal\twig_extension_test\TwigExtensionTestController::testFunctionRender()
- 10 core/modules/system/tests/modules/twig_extension_test/src/TwigExtensionTestController.php \Drupal\twig_extension_test\TwigExtensionTestController::testFunctionRender()
- 11.x 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',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.