theme-test-deprecations-child.html.twig

Same filename in other branches
  1. 10 core/modules/system/tests/modules/theme_test/templates/theme-test-deprecations-child.html.twig
{# Test use of deprecated variables in a child template. #}
{{- foo }}|
{{- gaz }}
1 theme call to theme-test-deprecations-child.html.twig
TwigDeprecationsTest::testParentVariableDeprecation in core/tests/Drupal/KernelTests/Core/Theme/TwigDeprecationsTest.php
Test deprecation of variables in parent does not leak to child.

File

core/modules/system/tests/modules/theme_test/templates/theme-test-deprecations-child.html.twig

View source
  1. {# Test use of deprecated variables in a child template. #}
  2. {{- foo }}|
  3. {{- gaz }}

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