theme-test-preprocess-suggestions.html.twig

Same filename in other branches
  1. 8.9.x core/modules/system/tests/modules/theme_test/templates/theme-test-preprocess-suggestions.html.twig
  2. 10 core/modules/system/tests/modules/theme_test/templates/theme-test-preprocess-suggestions.html.twig
  3. 11.x core/modules/system/tests/modules/theme_test/templates/theme-test-preprocess-suggestions.html.twig
<div class="suggestion">{{ foo }}</div>
{% if bar %}
  <div class="suggestion">{{ bar }}</div>
{% endif %}
2 theme calls to theme-test-preprocess-suggestions.html.twig
ThemeTestController::preprocessSuggestions in core/modules/system/tests/modules/theme_test/src/ThemeTestController.php
Controller for testing preprocess functions with theme suggestions.
ThemeTestController::preprocessSuggestions in core/modules/system/tests/modules/theme_test/src/ThemeTestController.php
Controller for testing preprocess functions with theme suggestions.

File

core/modules/system/tests/modules/theme_test/templates/theme-test-preprocess-suggestions.html.twig

View source
  1. <div class="suggestion">{{ foo }}</div>
  2. {% if bar %}
  3. <div class="suggestion">{{ bar }}</div>
  4. {% endif %}

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