cforge-2.0.x-dev/themes/sky_seldulac/templates/details.html.twig
themes/sky_seldulac/templates/details.html.twig
{#
/**
* @file
* Theme override for a details element.
* This is NECESSARY in 8.0.0-beta-14 because it is only provided in classy base theme not core
* and doesn't work without the class details-wrapper
* todo check this is working in core and delete this file https://www.drupal.org/node/2559203
*
* Available variables
* - attributes: A list of HTML attributes for the details element.
* - title: (optional) The title of the element, may not be set.
* - description: (optional) The description of the element, may not be set.
* - children: (optional) The children of the element, may not be set.
* - value: (optional) The value of the element, may not be set.
*
* @see template_preprocess_details()
*/
#}
<details{{ attributes }}>
{%- if title -%}
<summary{{ summary_attributes }}>{{ title }}</summary>
{%- endif -%}
<div class="details-wrapper">
{%- if description -%}
<div class="details-description">{{ description }}</div>
{%- endif -%}
{%- if children -%}
{{ children }}
{%- endif -%}
{%- if value -%}
{{ value }}
{%- endif -%}
</div>
</details>
