{# /** * @file * Default theme implementation for a fieldset element and its children. * * Available variables: * - attributes: HTML attributes for the
element. * - errors: (optional) Any errors for this
element, may not be set. * - required: Boolean indicating whether the element is required. * - legend: The element containing the following properties: * - title: Title of the
, intended for use as the text of the . * - attributes: HTML attributes to apply to the element. * - description: The description element containing the following properties: * - content: The description content of the
. * - attributes: HTML attributes to apply to the description container. * - children: The rendered child elements of the
. * - prefix: The content to add before the
children. * - suffix: The content to add after the
children. * * @see template_preprocess_fieldset() * * @ingroup themeable */ #} {% set classes = [ 'js-form-item', 'form-item', 'js-form-wrapper', 'form-wrapper', ] %} {% set legend_span_classes = [ 'fieldset-legend', required ? 'js-form-required', required ? 'form-required', ] %} {# Always wrap fieldset legends in a for CSS positioning. #} {{ legend.title }}
{% if errors %}
{{ errors }}
{% endif %} {% if prefix %} {{ prefix }} {% endif %} {{ children }} {% if suffix %} {{ suffix }} {% endif %} {% if description.content %} {{ description.content }}
{% endif %}