Issue #2152203 by joelpittet, InternetDevels, rteijeiro, steveoliver, hussainweb, shanethehat, jenlampton, kpa, AnythonyR, EVIIILJ, kgoel, Cottser, dsdeiz, hanpersand: Convert theme_container() to Twig.
2014-03-07 22:15:12 +00:00
|
|
|
{#
|
|
|
|
/**
|
|
|
|
* @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.
|
|
|
|
*
|
|
|
|
* Available variables:
|
|
|
|
* - attributes: HTML attributes for the containing element.
|
|
|
|
* - children: The rendered child elements of the container.
|
2014-09-26 10:54:02 +00:00
|
|
|
* - has_parent: A flag to indicate that the container has one or more parent
|
|
|
|
containers.
|
Issue #2152203 by joelpittet, InternetDevels, rteijeiro, steveoliver, hussainweb, shanethehat, jenlampton, kpa, AnythonyR, EVIIILJ, kgoel, Cottser, dsdeiz, hanpersand: Convert theme_container() to Twig.
2014-03-07 22:15:12 +00:00
|
|
|
*
|
|
|
|
* @see template_preprocess_container()
|
|
|
|
*
|
|
|
|
* @ingroup themeable
|
|
|
|
*/
|
|
|
|
#}
|
2014-09-26 10:54:02 +00:00
|
|
|
<div{{ attributes.addClass(has_parent ? 'form-wrapper') }}>{{ children }}</div>
|