Same filename in this branch
  1. 10 core/modules/system/templates/block--system-branding-block.html.twig
  2. 10 core/themes/olivero/templates/block/block--system-branding-block.html.twig
  3. 10 core/themes/stable9/templates/block/block--system-branding-block.html.twig
  4. 10 core/themes/starterkit_theme/templates/block/block--system-branding-block.html.twig
  5. 10 core/themes/claro/templates/classy/block/block--system-branding-block.html.twig
  6. 10 core/profiles/demo_umami/themes/umami/templates/components/branding/block--system-branding-block.html.twig
Same filename and directory in other branches
  1. 8.9.x core/profiles/demo_umami/themes/umami/templates/components/branding/block--system-branding-block.html.twig
  2. 9 core/profiles/demo_umami/themes/umami/templates/components/branding/block--system-branding-block.html.twig

Theme override for a branding block.

Each branding element variable (logo, name, slogan) is only available if enabled in the block configuration.

Available variables:

  • site_logo: Logo for site as defined in Appearance or theme settings.
  • site_name: Name for site as defined in Site information settings.
  • site_slogan: Slogan for site as defined in Site information settings.

File

core/profiles/demo_umami/themes/umami/templates/components/branding/block--system-branding-block.html.twig
View source
  1. {% extends "block.html.twig" %}
  2. {#
  3. /**
  4. * @file
  5. * Theme override for a branding block.
  6. *
  7. * Each branding element variable (logo, name, slogan) is only available if
  8. * enabled in the block configuration.
  9. *
  10. * Available variables:
  11. * - site_logo: Logo for site as defined in Appearance or theme settings.
  12. * - site_name: Name for site as defined in Site information settings.
  13. * - site_slogan: Slogan for site as defined in Site information settings.
  14. */
  15. #}
  16. {% block content %}
  17. {% embed 'umami:branding' with {
  18. attributes: create_attribute(),
  19. site_logo,
  20. site_name,
  21. site_slogan,
  22. url: path('<front>'),
  23. } only %}
  24. {% block site_name %}
  25. {{ site_name }}
  26. {% endblock %}
  27. {% block site_slogan %}
  28. {{ site_slogan }}
  29. {% endblock %}
  30. {% endembed %}
  31. {% endblock %}