You are here

public function TwigTweakTestController::build in Twig Tweak 3.1.x

Same name and namespace in other branches
  1. 3.x tests/twig_tweak_test/src/Controller/TwigTweakTestController.php \Drupal\twig_tweak_test\Controller\TwigTweakTestController::build()

Builds the response.

1 string reference to 'TwigTweakTestController::build'
twig_tweak_test.routing.yml in tests/twig_tweak_test/twig_tweak_test.routing.yml
tests/twig_tweak_test/twig_tweak_test.routing.yml

File

tests/twig_tweak_test/src/Controller/TwigTweakTestController.php, line 13

Class

TwigTweakTestController
Returns responses for Twig Tweak Test routes.

Namespace

Drupal\twig_tweak_test\Controller

Code

public function build() : array {
  return [
    '#theme' => 'twig_tweak_test',
  ];
}