Initial Drupal 11 with DDEV setup
This commit is contained in:
		
							
								
								
									
										30
									
								
								web/core/modules/system/templates/container.html.twig
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								web/core/modules/system/templates/container.html.twig
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,30 @@
 | 
			
		||||
{#
 | 
			
		||||
/**
 | 
			
		||||
 * @file
 | 
			
		||||
 * Default theme implementation of a container used to wrap child elements.
 | 
			
		||||
 *
 | 
			
		||||
 * Used for grouped form items. Can also be used as a theme wrapper for any
 | 
			
		||||
 * renderable element, to surround it with a <div> and HTML attributes.
 | 
			
		||||
 * See \Drupal\Core\Render\Element\RenderElementBase for more
 | 
			
		||||
 * information on the #theme_wrappers render array property, and
 | 
			
		||||
 * \Drupal\Core\Render\Element\Container for usage of the container render
 | 
			
		||||
 * element.
 | 
			
		||||
 *
 | 
			
		||||
 * Available variables:
 | 
			
		||||
 * - attributes: HTML attributes for the containing element.
 | 
			
		||||
 * - children: The rendered child elements of the container.
 | 
			
		||||
 * - has_parent: A flag to indicate that the container has one or more parent
 | 
			
		||||
     containers.
 | 
			
		||||
 *
 | 
			
		||||
 * @see \Drupal\Core\Theme\ThemePreprocess::preprocessContainer()
 | 
			
		||||
 *
 | 
			
		||||
 * @ingroup themeable
 | 
			
		||||
 */
 | 
			
		||||
#}
 | 
			
		||||
{%
 | 
			
		||||
  set classes = [
 | 
			
		||||
    has_parent ? 'js-form-wrapper',
 | 
			
		||||
    has_parent ? 'form-wrapper',
 | 
			
		||||
  ]
 | 
			
		||||
%}
 | 
			
		||||
<div{{ attributes.addClass(classes) }}>{{ children }}</div>
 | 
			
		||||
		Reference in New Issue
	
	Block a user