{# /** * @file * Theme override for a details element. * * Available variables * - attributes: A list of HTML attributes for the details element. * - errors: (optional) Any errors for this details element, may not be set. * - title: (optional) The title of the element, may not be set. * - summary_attributes: A list of HTML attributes for the summary element. * - 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() */ #} {# Prefix 'details' class to avoid collision with Modernizr. @todo Remove prefix after https://www.drupal.org/node/2981732 has been solved. #} {%- if title -%} {% set summary_classes = [ 'seven-details__summary', required ? 'js-form-required', required ? 'form-required', ] %} {{ title }} {%- endif -%}
{% if errors %}
{{ errors }}
{% endif %} {%- if description -%}
{{ description }}
{%- endif -%} {%- if children -%} {{ children }} {%- endif -%} {%- if value -%} {{ value }} {%- endif -%}