function OliveroHooks::preprocessRadios
Same name and namespace in other branches
- 11.x core/themes/olivero/src/Hook/OliveroHooks.php \Drupal\olivero\Hook\OliveroHooks::preprocessRadios()
Implements hook_preprocess_HOOK() for radios.
Attributes
#[Hook('preprocess_radios')]
File
-
core/
themes/ olivero/ src/ Hook/ OliveroHooks.php, line 322
Class
- OliveroHooks
- Hook implementations for olivero.
Namespace
Drupal\olivero\HookCode
public function preprocessRadios(&$variables) : void {
$variables['attributes']['class'][] = 'form-boolean-group';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.