EntityFieldDefinitionTrait
trait EntityFieldDefinitionTrait (View source)
The entity field definition trait.
Methods
array
getDefinitionFromEntity(string $key)
Gets the field definition from a specific entity base field.
static string
getEntityTypeId(string $plugin_id)
Finds the entity type from configuration or plugin ID.
Details
protected array
getDefinitionFromEntity(string $key)
Gets the field definition from a specific entity base field.
The method takes the field ID as an argument and returns the field storage definition to be used in getIds() by querying the destination entity base field definition.
static protected string
getEntityTypeId(string $plugin_id)
Finds the entity type from configuration or plugin ID.