hook_field_widget_WIDGET_TYPE_form_alter
function hook_field_widget_WIDGET_TYPE_form_alter
hook_field_widget_WIDGET_TYPE_form_alter(&$element, \Drupal\Core\Form\FormStateInterface $form_state, $context)
Alter widget forms for a specific widget provided by another module.
Modules can implement hook_field_widget_WIDGET_TYPE_form_alter() to modify a specific widget form, rather than using hook_field_widget_form_alter() and checking the widget type.
Parameters
$element: The field widget form element as constructed b