function TwigThemeTestController::urlToStringRender
Same name in other branches
- 9 core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php \Drupal\twig_theme_test\TwigThemeTestController::urlToStringRender()
- 10 core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php \Drupal\twig_theme_test\TwigThemeTestController::urlToStringRender()
- 11.x core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php \Drupal\twig_theme_test\TwigThemeTestController::urlToStringRender()
Renders a URL to a string.
1 string reference to 'TwigThemeTestController::urlToStringRender'
- 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 65
Class
- TwigThemeTestController
- Controller routines for Twig theme test routes.
Namespace
Drupal\twig_theme_testCode
public function urlToStringRender() {
return [
'#theme' => 'twig_theme_test_url_to_string',
'#test_url' => Url::fromRoute('user.register'),
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.