theme-test-deprecations-preprocess.html.twig
Same filename in other branches
{# Test use of variables deprecated in a preprocess hook. #} {% set set_var = 'set_var' %} {{- foo }}| {{- set_var }}| {%- for for_var in contents %} {{- for_var }}| {%- endfor %} {{- bar }}
1 theme call to theme-test-deprecations-preprocess.html.twig
- TwigDeprecationsTest::assertRendered in core/
tests/ Drupal/ KernelTests/ Core/ Theme/ TwigDeprecationsTest.php - Assert that 'theme_test_deprecations_preprocess' renders expected text.
File
-
core/
modules/ system/ tests/ modules/ theme_test/ templates/ theme-test-deprecations-preprocess.html.twig
View source
- {# Test use of variables deprecated in a preprocess hook. #}
- {% set set_var = 'set_var' %}
- {{- foo }}|
- {{- set_var }}|
- {%- for for_var in contents %}
- {{- for_var }}|
- {%- endfor %}
- {{- bar }}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.