{# /** * @file * Default theme implementation for a select element. * * Available variables: * - attributes: HTML attributes for the
tag. * - options: The
element children. * * @see template_preprocess_select() * * @ingroup themeable */ #} {% apply spaceless %} {% for option in options %} {% if option.type == 'optgroup' %}
{% for sub_option in option.options %}
{{ sub_option.label }}
{% endfor %}
{% elseif option.type == 'option' %}
{{ option.label }}
{% endif %} {% endfor %}
{% endapply %}