block--bundle--disclaimer-block.html.twig

Same filename in other branches
  1. 11.x core/profiles/demo_umami/themes/umami/templates/components/disclaimer/block--bundle--disclaimer-block.html.twig

Theme override for a disclaimer block.

Displays Umami Disclaimer and Copyright text.

Available variables:

  • content.field_disclaimer: Content of Disclaimer formatted text field.
  • content.field_copyright: Content of Copyright formatted text field.

File

core/profiles/demo_umami/themes/umami/templates/components/disclaimer/block--bundle--disclaimer-block.html.twig

View source
  1. {% extends "block.html.twig" %}
  2. {#
  3. /**
  4. * @file
  5. * Theme override for a disclaimer block.
  6. *
  7. * Displays Umami Disclaimer and Copyright text.
  8. *
  9. * Available variables:
  10. * - content.field_disclaimer: Content of Disclaimer formatted text field.
  11. * - content.field_copyright: Content of Copyright formatted text field.
  12. */
  13. #}
  14. {% block content %}
  15. {% embed 'umami:disclaimer' with {
  16. attributes: create_attribute(),
  17. content,
  18. } only %}
  19. {% block copyright %}
  20. {{ content.field_copyright }}
  21. {% endblock %}
  22. {% block disclaimer %}
  23. {{ content.field_disclaimer }}
  24. {% endblock %}
  25. {% endembed %}
  26. {% endblock %}

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