{# /** * @file * Theme override for an 'input' #type form element. * * Available variables: * - attributes: A list of HTML attributes for the input element. * - children: Optional additional rendered elements. * * @see template_preprocess_input() */ #} {% set nowrap = [ attributes.id matches '/^edit-options-expose-button.*$/' ? 'no-wrap', ] %} {% if attributes.hasClass('visually-hidden') or attributes.hasClass('js-hide') %} {{ children }} {% else %} {# Views UI does not use core's dropbutton for adding displays; Prevent overriding media_library's remove button #} {% if not (attributes.addClass(nowrap).hasClass('no-wrap') or attributes.hasClass('add-display') or attributes.hasClass('media-library-item__remove')) %} {{ children }} {% else %} {{ children }} {% endif %} {% endif %}