entity-embed-container.html.twig in Varbase Media 8.7
Same filename and directory in other branches
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
File
templates/entity-embed-container.html.twigView source
- {#
- /**
- * @file
- * 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 template_preprocess_entity_embed_container()
- *
- * @ingroup themeable
- */
- #}
- {%if url %}<a href='{{ url }}'>{{ children }}</a>{% else %}{{ children }}{% endif %}