twig_theme_test.file_url.html.twig

Same filename in other branches
  1. 9 core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.file_url.html.twig
  2. 8.9.x core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.file_url.html.twig
  3. 11.x core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.file_url.html.twig
<div>file_url: {{ file_url('core/modules/system/tests/modules/twig_theme_test/twig_theme_test.js') }}</div>
<div>file_url: {{ file_url(undefined_variable) }}</div>

File

core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.file_url.html.twig

View source
  1. <div>file_url: {{ file_url('core/modules/system/tests/modules/twig_theme_test/twig_theme_test.js') }}</div>
  2. <div>file_url: {{ file_url(undefined_variable) }}</div>

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