block--preview-aware-block.html.twig

Same filename in other branches
  1. 9 core/modules/layout_builder/tests/modules/layout_builder_test/templates/block--preview-aware-block.html.twig
  2. 11.x core/modules/layout_builder/tests/modules/layout_builder_test/templates/block--preview-aware-block.html.twig
{% if in_preview %}
  The block template is being previewed.
{% endif %}

{% include '@block/block.html.twig' %}

File

core/modules/layout_builder/tests/modules/layout_builder_test/templates/block--preview-aware-block.html.twig

View source
  1. {% if in_preview %}
  2. The block template is being previewed.
  3. {% endif %}
  4. {% include '@block/block.html.twig' %}

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