function FieldUiThemeHooks::preprocessFormElementNewStorageType
Implements hook_preprocess_HOOK().
Attributes
#[Hook('preprocess_form_element__new_storage_type')]
File
-
core/
modules/ field_ui/ src/ Hook/ FieldUiThemeHooks.php, line 15
Class
- FieldUiThemeHooks
- Hook implementations for field_ui.
Namespace
Drupal\field_ui\HookCode
public function preprocessFormElementNewStorageType(&$variables) : void {
// Add support for a variant string so radios in the add field form can be
// programmatically distinguished.
$variables['variant'] = $variables['element']['#variant'] ?? NULL;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.