twig_theme_test.placeholder_outside_trans.html.twig

Same filename in other branches
  1. 9 core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.placeholder_outside_trans.html.twig
  2. 8.9.x core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.placeholder_outside_trans.html.twig
  3. 10 core/modules/system/tests/modules/twig_theme_test/templates/twig_theme_test.placeholder_outside_trans.html.twig
Placeholder outside trans: {{ var | placeholder }}

{% trans %}
  Placeholder inside trans: {{ var | placeholder }}
{% endtrans %}

File

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

View source
  1. Placeholder outside trans: {{ var | placeholder }}
  2. {% trans %}
  3. Placeholder inside trans: {{ var | placeholder }}
  4. {% endtrans %}

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