You are here

components-test.html.twig in Components! 3.x

Same filename and directory in other branches
  1. 8.2 tests/modules/components_test/templates/components-test.html.twig
{# These templates are found using .info namespace definitions. #}
{{ include('@components_test/components-test.twig') }}
{{ include('@components/components-test-active-theme.twig') }}
{{ include('@components/components-test-base-theme.twig') }}
{{ include('@components/components-test-module.twig') }}

{# This template is found using hook_components_namespaces_alter(). #}
{{ include('@components/components-test-namespaces-alter.twig') }}

{# This template is found using hook_protected_twig_namespaces_alter(). #}
{{ include('@system/components-test-protected-twig-namespaces-alter.twig') }}

{# This template is nested in a directory, but uses the no-path syntax. #}
{{ include('@components/components-test-nested.twig') }}

{# This template has a conflicting file name and output the first found. #}
{{ include('@components/components-test-conflicting-file-name.twig') }}

{# This template has a conflicting file name, so it uses the full path. #}
{{ include('@components/nested2/components-test-conflicting-file-name.twig') }}

File

tests/modules/components_test/templates/components-test.html.twig
View source
  1. {# These templates are found using .info namespace definitions. #}
  2. {{ include('@components_test/components-test.twig') }}
  3. {{ include('@components/components-test-active-theme.twig') }}
  4. {{ include('@components/components-test-base-theme.twig') }}
  5. {{ include('@components/components-test-module.twig') }}
  6. {# This template is found using hook_components_namespaces_alter(). #}
  7. {{ include('@components/components-test-namespaces-alter.twig') }}
  8. {# This template is found using hook_protected_twig_namespaces_alter(). #}
  9. {{ include('@system/components-test-protected-twig-namespaces-alter.twig') }}
  10. {# This template is nested in a directory, but uses the no-path syntax. #}
  11. {{ include('@components/components-test-nested.twig') }}
  12. {# This template has a conflicting file name and output the first found. #}
  13. {{ include('@components/components-test-conflicting-file-name.twig') }}
  14. {# This template has a conflicting file name, so it uses the full path. #}
  15. {{ include('@components/nested2/components-test-conflicting-file-name.twig') }}