You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
642 B
31 lines
642 B
12 months ago
|
{#
|
||
|
/**
|
||
|
* @file
|
||
|
* Theme override to display a media item.
|
||
|
*
|
||
|
* Available variables:
|
||
|
* - media: The media item, with limited access to object properties and
|
||
|
* methods.
|
||
|
* - name: Name of the media.
|
||
|
* - content: Media content.
|
||
|
*
|
||
|
* @see template_preprocess_media()
|
||
|
*
|
||
|
* @ingroup themeable
|
||
|
*/
|
||
|
#}
|
||
|
{%
|
||
|
set classes = [
|
||
|
'media',
|
||
|
'media--type-' ~ media.bundle()|clean_class,
|
||
|
not media.isPublished() ? 'media--unpublished',
|
||
|
view_mode ? 'media--view-mode-' ~ view_mode|clean_class,
|
||
|
]
|
||
|
%}
|
||
|
<div{{ attributes.addClass(classes) }}>
|
||
|
{{ title_suffix.contextual_links }}
|
||
|
{% if content %}
|
||
|
{{ content }}
|
||
|
{% endif %}
|
||
|
</div>
|