public function TwigThemeTestController::phpVariablesRender in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php \Drupal\twig_theme_test\TwigThemeTestController::phpVariablesRender()
- 9 core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php \Drupal\twig_theme_test\TwigThemeTestController::phpVariablesRender()
Menu callback for testing PHP variables in a Twig template.
1 string reference to 'TwigThemeTestController::phpVariablesRender'
- twig_theme_test.routing.yml in core/
modules/ system/ tests/ modules/ twig_theme_test/ twig_theme_test.routing.yml - core/modules/system/tests/modules/twig_theme_test/twig_theme_test.routing.yml
File
- core/
modules/ system/ tests/ modules/ twig_theme_test/ src/ TwigThemeTestController.php, line 16
Class
- TwigThemeTestController
- Controller routines for Twig theme test routes.
Namespace
Drupal\twig_theme_testCode
public function phpVariablesRender() {
return [
'#markup' => \Drupal::theme()
->render('twig_theme_test_php_variables', []),
];
}