Change record status: 
Project: 
Introduced in branch: 
10.2.x
Introduced in version: 
10.2.0
Description: 

A new API has been added for altering field definitions used in the UI. This can be used for example to hide field types that are incompatible with an entity type.

Example:

/**
 * Implements hook_field_info_entity_type_ui_definitions_alter().
 */
function hook_field_info_entity_type_ui_definitions_alter(array &$ui_definitions, string $entity_type_id) {
  if ($entity_type_id === 'node') {
    unset($ui_definitions['field_type_not_compatible_with_node']);
  }
}
Impacts: 
Module developers