annotate core/themes/classy/templates/field/file-video.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@14 1 {#
Chris@14 2 /**
Chris@14 3 * @file
Chris@14 4 * Default theme implementation to display the file entity as a video tag.
Chris@14 5 *
Chris@14 6 * Available variables:
Chris@14 7 * - attributes: An array of HTML attributes, intended to be added to the
Chris@14 8 * video tag.
Chris@14 9 * - files: And array of files to be added as sources for the video tag. Each
Chris@14 10 * element is an array with the following elements:
Chris@14 11 * - file: The full file object.
Chris@14 12 * - source_attributes: An array of HTML attributes for to be added to the
Chris@14 13 * source tag.
Chris@14 14 *
Chris@14 15 * @ingroup themeable
Chris@14 16 */
Chris@14 17 #}
Chris@14 18 {{ attach_library('classy/file') }}
Chris@14 19 <video {{ attributes }}>
Chris@14 20 {% for file in files %}
Chris@14 21 <source {{ file.source_attributes }} />
Chris@14 22 {% endfor %}
Chris@14 23 </video>