checkboxes.html.twig

Same filename in this branch
  1. 11.x core/themes/stable9/templates/form/checkboxes.html.twig
  2. 11.x core/themes/claro/templates/form/checkboxes.html.twig
  3. 11.x core/themes/starterkit_theme/templates/form/checkboxes.html.twig
Same filename in other branches
  1. 9 core/themes/stable9/templates/form/checkboxes.html.twig
  2. 9 core/themes/claro/templates/form/checkboxes.html.twig
  3. 9 core/themes/stable/templates/form/checkboxes.html.twig
  4. 9 core/themes/starterkit_theme/templates/form/checkboxes.html.twig
  5. 9 core/themes/classy/templates/form/checkboxes.html.twig
  6. 9 core/modules/system/templates/checkboxes.html.twig
  7. 8.9.x core/themes/claro/templates/form/checkboxes.html.twig
  8. 8.9.x core/themes/stable/templates/form/checkboxes.html.twig
  9. 8.9.x core/themes/classy/templates/form/checkboxes.html.twig
  10. 8.9.x core/modules/system/templates/checkboxes.html.twig
  11. 10 core/themes/stable9/templates/form/checkboxes.html.twig
  12. 10 core/themes/claro/templates/form/checkboxes.html.twig
  13. 10 core/themes/starterkit_theme/templates/form/checkboxes.html.twig
  14. 10 core/modules/system/templates/checkboxes.html.twig

Default theme implementation 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/modules/system/templates/checkboxes.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a 'checkboxes' #type form element.
  5. *
  6. * Available variables
  7. * - attributes: A list of HTML attributes for the wrapper element.
  8. * - children: The rendered checkboxes.
  9. *
  10. * @see template_preprocess_checkboxes()
  11. *
  12. * @ingroup themeable
  13. */
  14. @todo: remove this file once https://www.drupal.org/node/1819284 is resolved.
  15. This is identical to core/modules/system/templates/container.html.twig
  16. #}
  17. <div{{ attributes.addClass('form-checkboxes') }}>{{ children }}</div>

Related topics


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