You are here

public function TwigExtensionTestController::testFunctionRender in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 36
Contains \Drupal\twig_extension_test\TwigExtensionTestController.

Class

TwigExtensionTestController
Controller routines for Twig extension test routes.

Namespace

Drupal\twig_extension_test

Code

public function testFunctionRender() {
  return array(
    '#theme' => 'twig_extension_test_function',
  );
}