Initial Drupal 11 with DDEV setup
This commit is contained in:
		
							
								
								
									
										22
									
								
								web/core/modules/file/templates/file-audio.html.twig
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								web/core/modules/file/templates/file-audio.html.twig
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,22 @@
 | 
			
		||||
{#
 | 
			
		||||
/**
 | 
			
		||||
* @file
 | 
			
		||||
* Default theme implementation to display the file entity as an audio tag.
 | 
			
		||||
*
 | 
			
		||||
* Available variables:
 | 
			
		||||
* - attributes: An array of HTML attributes, intended to be added to the
 | 
			
		||||
*   audio tag.
 | 
			
		||||
* - files: And array of files to be added as sources for the audio tag. Each
 | 
			
		||||
*   element is an array with the following elements:
 | 
			
		||||
*   - file: The full file object.
 | 
			
		||||
*   - source_attributes: An array of HTML attributes for to be added to the
 | 
			
		||||
*     source tag.
 | 
			
		||||
*
 | 
			
		||||
* @ingroup themeable
 | 
			
		||||
*/
 | 
			
		||||
#}
 | 
			
		||||
<audio {{ attributes }}>
 | 
			
		||||
  {% for file in files %}
 | 
			
		||||
    <source {{ file.source_attributes }} />
 | 
			
		||||
  {% endfor %}
 | 
			
		||||
</audio>
 | 
			
		||||
		Reference in New Issue
	
	Block a user