Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Updated: Comment #0
Problem/Motivation
Follow-up from #2211553: Allow usage of entity_reference field widget and formatter for base fields.
TermAutocompleteController
uses fieldInfo
to get field definition so there's no ability to use autocomplete widget for base fields in custom entities
Proposed resolution
Use \Drupal\Core\Entity\EntityManager::getFieldDefinitions()
to return field definition
Remaining tasks
tbd
User interface changes
no
API changes
no
Comments
Comment #1
andypostComment #2
BerdirFixed in #2116363: Unified repository of field definitions (cache + API).