function template_preprocess_date_recur_modular_alpha_widget in Recurring Date Field Modular Widgets 8
Same name and namespace in other branches
- 3.x date_recur_modular.module \template_preprocess_date_recur_modular_alpha_widget()
- 2.x date_recur_modular.module \template_preprocess_date_recur_modular_alpha_widget()
Implements hook_preprocess_HOOK().
HOOK: 'date_recur_modular_widget'.
File
- ./
date_recur_modular.module, line 41
Code
function template_preprocess_date_recur_modular_alpha_widget(array &$variables) : void {
$variables['attributes']['class'][] = 'date-recur-modular-alpha-widget';
$variables['#attached']['library'][] = 'date_recur_modular/date_recur_modular_alpha_widget';
}