annotate core/modules/media/templates/media.html.twig @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents 1fec387a4317
children
rev   line source
Chris@0 1 {#
Chris@0 2 /**
Chris@0 3 * @file
Chris@0 4 * Default theme implementation to present a media item.
Chris@0 5 *
Chris@0 6 * Available variables:
Chris@0 7 * - media: The media item, with limited access to object properties and
Chris@0 8 * methods. Only method names starting with "get", "has", or "is" and
Chris@0 9 * a few common methods such as "id", "label", and "bundle" are available.
Chris@0 10 * For example:
Chris@0 11 * - entity.getEntityTypeId() will return the entity type ID.
Chris@0 12 * - entity.hasField('field_example') returns TRUE if the entity includes
Chris@0 13 * field_example. (This does not indicate the presence of a value in this
Chris@0 14 * field.)
Chris@0 15 * Calling other methods, such as entity.delete(), will result in
Chris@0 16 * an exception.
Chris@0 17 * See \Drupal\Core\Entity\EntityInterface for a full list of methods.
Chris@0 18 * - name: Name of the media item.
Chris@0 19 * - content: Media content.
Chris@0 20 * - title_prefix: Additional output populated by modules, intended to be
Chris@0 21 * displayed in front of the main title tag that appears in the template.
Chris@0 22 * - title_suffix: Additional output populated by modules, intended to be
Chris@0 23 * displayed after the main title tag that appears in the template.
Chris@0 24 * - view_mode: View mode; for example, "teaser" or "full".
Chris@0 25 * - attributes: HTML attributes for the containing element.
Chris@0 26 * - title_attributes: Same as attributes, except applied to the main title
Chris@0 27 * tag that appears in the template.
Chris@0 28 *
Chris@0 29 * @see template_preprocess_media()
Chris@0 30 *
Chris@0 31 * @ingroup themeable
Chris@0 32 */
Chris@0 33 #}
Chris@0 34 <div{{ attributes }}>
Chris@14 35 {{ title_suffix.contextual_links }}
Chris@0 36 {{ content }}
Chris@0 37 </div>