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

andypost’s picture

Title: Allow usage of entity_reference field widget and formatter for base fields » Allow usage of "taxonomy_term_reference" field widget and formatter for base fields
Berdir’s picture

Status: Active » Closed (duplicate)