"Fossies" - the Fresh Open Source Software Archive

Member "drupal-8.9.10/core/modules/file/templates/file-video.html.twig" (26 Nov 2020, 608 Bytes) of package /linux/www/drupal-8.9.10.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) HTML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

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