my-card.twig

Same filename in this branch
  1. 10 core/modules/system/tests/themes/sdc_theme_test/components/my-card/my-card.twig
Same filename and directory in other branches
  1. 11.x core/modules/system/tests/themes/sdc_theme_test_enforce_schema/components/my-card/my-card.twig
  2. 11.x core/modules/system/tests/themes/sdc_theme_test/components/my-card/my-card.twig
<div {{ attributes }}>
  <h2 class="component--my-card__header">{{ header }}</h2>
  <div class="component--my-card--replaced__body">
    {% block card_body %}
      Default contents for a card
    {% endblock %}
  </div>
</div>

File

core/modules/system/tests/themes/sdc_theme_test_enforce_schema/components/my-card/my-card.twig

View source
  1. <div {{ attributes }}>
  2. <h2 class="component--my-card__header">{{ header }}</h2>
  3. <div class="component--my-card--replaced__body">
  4. {% block card_body %}
  5. Default contents for a card
  6. {% endblock %}
  7. </div>
  8. </div>

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