function TwigExtensionTestController::testFunctionRender

Same name in other branches
  1. 9 core/modules/system/tests/modules/twig_extension_test/src/TwigExtensionTestController.php \Drupal\twig_extension_test\TwigExtensionTestController::testFunctionRender()
  2. 10 core/modules/system/tests/modules/twig_extension_test/src/TwigExtensionTestController.php \Drupal\twig_extension_test\TwigExtensionTestController::testFunctionRender()
  3. 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_test

Code

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.