function field_ui_preprocess_form_element__new_storage_type
Same name in other branches
- 11.x core/modules/field_ui/field_ui.module \field_ui_preprocess_form_element__new_storage_type()
Implements hook_preprocess_HOOK().
File
-
core/
modules/ field_ui/ field_ui.module, line 237
Code
function field_ui_preprocess_form_element__new_storage_type(&$variables) {
// 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.