media--scale-crop-7-3-large.html.twig

Same filename in other branches
  1. 10 core/profiles/demo_umami/themes/umami/templates/content/media--scale-crop-7-3-large.html.twig

Theme override to display a hero media item for the Umami theme.

Wrapping elements are intentionally removed because the attributes can add `position: relative`, which interferes with absolutely positioned image.

Available variables:

  • name: Name of the media.
  • content: Media content.

See also

template_preprocess_media()

File

core/profiles/demo_umami/themes/umami/templates/content/media--scale-crop-7-3-large.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override to display a hero media item for the Umami theme.
  5. *
  6. * Wrapping elements are intentionally removed because the attributes can add
  7. * `position: relative`, which interferes with absolutely positioned image.
  8. *
  9. * Available variables:
  10. * - name: Name of the media.
  11. * - content: Media content.
  12. *
  13. * @see template_preprocess_media()
  14. *
  15. * @ingroup themeable
  16. */
  17. #}
  18. {% if content %}
  19. {{ content }}
  20. {% endif %}

Related topics


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