You are here

entity-embed-container.html.twig in Varbase Media 9.0.x

Default theme implementation of a container used to wrap embedded entities.

Available variables:

  • attributes: HTML attributes for the containing element.
  • children: The rendered child elements of the container.
  • url: The (sanitized) URL to link the embedded entity to, if any.

See also

template_preprocess_entity_embed_container()

File

templates/entity-embed-container.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation of a container used to wrap embedded entities.
  5. *
  6. * Available variables:
  7. * - attributes: HTML attributes for the containing element.
  8. * - children: The rendered child elements of the container.
  9. * - url: The (sanitized) URL to link the embedded entity to, if any.
  10. *
  11. * @see template_preprocess_entity_embed_container()
  12. *
  13. * @ingroup themeable
  14. */
  15. #}
  16. {%if url %}<a href='{{ url }}'>{{ children }}</a>{% else %}{{ children }}{% endif %}