checkboxes.html.twig
Same filename in this branch
Same filename in other branches
- 8.9.x core/themes/claro/templates/form/checkboxes.html.twig
- 8.9.x core/themes/stable/templates/form/checkboxes.html.twig
- 8.9.x core/themes/classy/templates/form/checkboxes.html.twig
- 8.9.x core/modules/system/templates/checkboxes.html.twig
- 10 core/themes/stable9/templates/form/checkboxes.html.twig
- 10 core/themes/claro/templates/form/checkboxes.html.twig
- 10 core/themes/starterkit_theme/templates/form/checkboxes.html.twig
- 10 core/modules/system/templates/checkboxes.html.twig
- 11.x core/themes/stable9/templates/form/checkboxes.html.twig
- 11.x core/themes/claro/templates/form/checkboxes.html.twig
- 11.x core/themes/starterkit_theme/templates/form/checkboxes.html.twig
- 11.x core/modules/system/templates/checkboxes.html.twig
Theme override for a 'checkboxes' #type form element.
Available variables
- attributes: A list of HTML attributes for the wrapper element.
- children: The rendered checkboxes.
See also
template_preprocess_checkboxes()
File
-
core/
themes/ classy/ templates/ form/ checkboxes.html.twig
View source
- {#
- /**
- * @file
- * Theme override for a 'checkboxes' #type form element.
- *
- * Available variables
- * - attributes: A list of HTML attributes for the wrapper element.
- * - children: The rendered checkboxes.
- *
- * @see template_preprocess_checkboxes()
- */
- @todo: remove this file once https://www.drupal.org/node/1819284 is resolved.
- This is identical to core/modules/system/templates/container.html.twig
- #}
- <div{{ attributes.addClass('form-checkboxes') }}>{{ children }}</div>
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.