input--checkbox.html.twig

Same filename and directory in other branches
  1. main core/themes/admin/templates/form/input--checkbox.html.twig

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 also

template_preprocess_input()

gin_preprocess_input()

1 theme call to input--checkbox.html.twig
Checkbox::getInfo in core/lib/Drupal/Core/Render/Element/Checkbox.php
Returns the element properties for this element.

File

core/themes/admin/templates/form/input--checkbox.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override for an 'input' #type form element.
  5. *
  6. * Available variables:
  7. * - attributes: A list of HTML attributes for the input element.
  8. * - children: Optional additional rendered elements.
  9. *
  10. * @see template_preprocess_input()
  11. * @see gin_preprocess_input()
  12. */
  13. #}
  14. {% if autocomplete_message %}
  15. <div class="gin-autocomplete">
  16. <input{{ attributes }}/>
  17. <div hidden class="gin-autocomplete__message">{{autocomplete_message}}</div>
  18. </div>
  19. {{ children }}
  20. {% else %}
  21. <input{{ attributes }}/>{{ children }}
  22. {% endif %}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.