twig_namespace_test.html.twig
Same filename in other branches
{% extends "@twig_namespace_a/test.html.twig" %} {% block content %} {% include "@twig_namespace_b/test.html.twig" %} {% endblock %}
1 theme call to twig_namespace_test.html.twig
- TwigNamespaceTest::testTwigNamespaces in core/
modules/ system/ tests/ src/ Kernel/ Theme/ TwigNamespaceTest.php - Tests template extension and includes using namespaces.
File
-
core/
modules/ system/ tests/ modules/ twig_theme_test/ templates/ twig_namespace_test.html.twig
View source
- {% extends "@twig_namespace_a/test.html.twig" %}
-
- {% block content %}
- {% include "@twig_namespace_b/test.html.twig" %}
- {% endblock %}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.