Initial Drupal 11 with DDEV setup
This commit is contained in:
		
							
								
								
									
										19
									
								
								web/core/modules/file/templates/file-link.html.twig
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								web/core/modules/file/templates/file-link.html.twig
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,19 @@
 | 
			
		||||
{#
 | 
			
		||||
/**
 | 
			
		||||
 * @file
 | 
			
		||||
 * Default theme implementation for a link to a file.
 | 
			
		||||
 *
 | 
			
		||||
 * Available variables:
 | 
			
		||||
 * - attributes: The HTML attributes for the containing element.
 | 
			
		||||
 * - link: A link to the file.
 | 
			
		||||
 * - file_size: The size of the file.
 | 
			
		||||
 *
 | 
			
		||||
 * @see template_preprocess_file_link()
 | 
			
		||||
 *
 | 
			
		||||
 * @ingroup themeable
 | 
			
		||||
 */
 | 
			
		||||
#}
 | 
			
		||||
<span{{ attributes }}>{{ link }}</span>
 | 
			
		||||
{% if file_size %}
 | 
			
		||||
  <span>({{ file_size }})</span>
 | 
			
		||||
{% endif %}
 | 
			
		||||
		Reference in New Issue
	
	Block a user