function OliveroHooks::preprocessRadios

Same name and namespace in other branches
  1. main 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\Hook

Code

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.