template_preprocess_checkboxes(&$variables)
Prepares variables for checkboxes templates.
Default template: checkboxes.html.twig.
array $variables: An associative array containing:
function template_preprocess_checkboxes(&$variables) { $element = $variables['element']; $variables['attributes'] = array(); if (isset($element['#id'])) { $variables['attributes']['id'] = $element['#id']; } if (isset($element['#attributes']['title'])) { $variables['attributes']['title'] = $element['#attributes']['title']; } $variables['children'] = $element['#children']; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!includes!form.inc/function/template_preprocess_checkboxes/8.1.x