EntityFieldManagerInterface
interface EntityFieldManagerInterface (View source)
Provides an interface for an entity field manager.
Methods
Gets the base field definitions for a content entity type.
Gets the field definitions for a specific bundle.
Gets the field storage definitions for a content entity type.
Gets a lightweight map of fields across bundles.
Sets a lightweight map of fields across bundles.
Gets a lightweight map of fields across bundles filtered by field type.
Clears static and persistent field definition caches.
Disable the use of caches.
Gets the "extra fields" for a bundle.
Details
FieldDefinitionInterface[]
getBaseFieldDefinitions(string $entity_type_id)
Gets the base field definitions for a content entity type.
Only fields that are not specific to a given bundle or set of bundles are returned. This excludes configurable fields, as they are always attached to a specific bundle.
FieldDefinitionInterface[]
getFieldDefinitions(string $entity_type_id, string $bundle)
Gets the field definitions for a specific bundle.
FieldStorageDefinitionInterface[]
getFieldStorageDefinitions(string $entity_type_id)
Gets the field storage definitions for a content entity type.
This returns all field storage definitions for base fields and bundle fields of an entity type. Note that field storage definitions of a base field equal the full base field definition (i.e. they implement FieldDefinitionInterface), while the storage definitions for bundle fields may implement FieldStorageDefinitionInterface only.
array
getFieldMap()
Gets a lightweight map of fields across bundles.
$this
setFieldMap(array $field_map)
Sets a lightweight map of fields across bundles.
array
getFieldMapByFieldType(string $field_type)
Gets a lightweight map of fields across bundles filtered by field type.
clearCachedFieldDefinitions()
Clears static and persistent field definition caches.
useCaches(bool $use_caches = FALSE)
Disable the use of caches.
array
getExtraFields(string $entity_type_id, string $bundle)
Gets the "extra fields" for a bundle.