Manages the discovery of entity fields.
This includes field definitions, base field definitions, and field storage definitions.
Hierarchy
- class \Drupal\Core\Entity\EntityFieldManager implements EntityFieldManagerInterface uses UseCacheBackendTrait, StringTranslationTrait
File
- core/lib/Drupal/Core/Entity/EntityFieldManager.php, line 21
Namespace
Drupal\Core\Entity
Members
Name | Modifiers | Type | Description |
---|---|---|---|
EntityFieldManager::$baseFieldDefinitions | protected | property | Static cache of base field definitions. |
EntityFieldManager::$entityDisplayRepository | protected | property | The entity display repository. |
EntityFieldManager::$entityTypeBundleInfo | protected | property | The entity type bundle info. |
EntityFieldManager::$entityTypeManager | protected | property | The entity type manager. |
EntityFieldManager::$extraFields | protected | property | Extra fields by bundle. |
EntityFieldManager::$fieldDefinitions | protected | property | Static cache of field definitions per bundle and entity type. |
EntityFieldManager::$fieldMap | protected | property | An array keyed by entity type. Each value is an array whose keys are field names and whose value is an array with two entries: |
EntityFieldManager::$fieldMapByFieldType | protected | property | An array keyed by field type. Each value is an array whose key are entity types including arrays in the same form that $fieldMap. |
EntityFieldManager::$fieldStorageDefinitions | protected | property | Static cache of field storage definitions per entity type. |
EntityFieldManager::$keyValueFactory | protected | property | The key-value factory. |
EntityFieldManager::$languageManager | protected | property | The language manager. |
EntityFieldManager::$moduleHandler | protected | property | The module handler. |
EntityFieldManager::$typedDataManager | protected | property | The typed data manager. |
EntityFieldManager::buildBaseFieldDefinitions | protected | function | Builds base field definitions for an entity type. |
EntityFieldManager::buildBundleFieldDefinitions | protected | function | Builds field definitions for a specific bundle within an entity type. |
EntityFieldManager::buildFieldStorageDefinitions | protected | function | Builds field storage definitions for an entity type. |
EntityFieldManager::clearCachedFieldDefinitions | public | function | Clears static and persistent field definition caches. Overrides EntityFieldManagerInterface::clearCachedFieldDefinitions |
EntityFieldManager::getBaseFieldDefinitions | public | function | Gets the base field definitions for a content entity type. Overrides EntityFieldManagerInterface::getBaseFieldDefinitions |
EntityFieldManager::getExtraFields | public | function | Gets the "extra fields" for a bundle. Overrides EntityFieldManagerInterface::getExtraFields |
EntityFieldManager::getFieldDefinitions | public | function | Gets the field definitions for a specific bundle. Overrides EntityFieldManagerInterface::getFieldDefinitions |
EntityFieldManager::getFieldMap | public | function | Gets a lightweight map of fields across bundles. Overrides EntityFieldManagerInterface::getFieldMap |
EntityFieldManager::getFieldMapByFieldType | public | function | Gets a lightweight map of fields across bundles filtered by field type. Overrides EntityFieldManagerInterface::getFieldMapByFieldType |
EntityFieldManager::getFieldStorageDefinitions | public | function | Gets the field storage definitions for a content entity type. Overrides EntityFieldManagerInterface::getFieldStorageDefinitions |
EntityFieldManager::setFieldMap | public | function | Sets a lightweight map of fields across bundles. Overrides EntityFieldManagerInterface::setFieldMap |
EntityFieldManager::useCaches | public | function | Disable the use of caches. Overrides EntityFieldManagerInterface::useCaches |
EntityFieldManager::__construct | public | function | Constructs a new EntityFieldManager. |
StringTranslationTrait::$stringTranslation | protected | property | The string translation service. |
StringTranslationTrait::formatPlural | protected | function | Formats a string containing a count of items. |
StringTranslationTrait::getNumberOfPlurals | protected | function | Returns the number of plurals supported by a given language. |
StringTranslationTrait::getStringTranslation | protected | function | Gets the string translation service. |
StringTranslationTrait::setStringTranslation | public | function | Sets the string translation service to use. |
StringTranslationTrait::t | protected | function | Translates a string to the current language or to a given language. |
UseCacheBackendTrait::$cacheBackend | protected | property | Cache backend instance. |
UseCacheBackendTrait::$useCaches | protected | property | Flag whether caches should be used or skipped. |
UseCacheBackendTrait::cacheGet | protected | function | Fetches from the cache backend, respecting the use caches flag. |
UseCacheBackendTrait::cacheSet | protected | function | Stores data in the persistent cache, respecting the use caches flag. |
Please login to continue.