function TwigThemeTestController::fileUrlRender

Same name in other branches
  1. 9 core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php \Drupal\twig_theme_test\TwigThemeTestController::fileUrlRender()
  2. 8.9.x core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php \Drupal\twig_theme_test\TwigThemeTestController::fileUrlRender()
  3. 10 core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php \Drupal\twig_theme_test\TwigThemeTestController::fileUrlRender()

Renders for testing file_url functions in a Twig template.

1 string reference to 'TwigThemeTestController::fileUrlRender'
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 77

Class

TwigThemeTestController
Controller routines for Twig theme test routes.

Namespace

Drupal\twig_theme_test

Code

public function fileUrlRender() {
    return [
        '#theme' => 'twig_theme_test_file_url',
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.