By lauriii on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
10.3.x
Introduced in version:
10.3.0
Issue links:
Description:
Drupal 10.2.0 added a new API for modules for modules to dynamically alter field definitions used for rendering the UI. In Drupal 10.3.0, \Drupal\Core\Field\FieldTypePluginManagerInterface has now a new method that can be used for retrieving the entity type specific UI field definitions.
Example:
$field_type_manager = \Drupal::service('plugin.manager.field.field_type');
$definitions = $field_type_manager->getEntityTypeUiDefinitions('node');
Impacts:
Module developers