class TestEntityFieldManager
Hierarchy
- class \Drupal\Tests\Core\Entity\TestEntityFieldManager extends \Drupal\Core\Entity\EntityFieldManager
Expanded class hierarchy of TestEntityFieldManager
File
-
core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityFieldManagerTest.php, line 777
Namespace
Drupal\Tests\Core\EntityView source
class TestEntityFieldManager extends EntityFieldManager {
/**
* Allows the static caches to be cleared.
*/
public function testClearEntityFieldInfo() {
$this->baseFieldDefinitions = [];
$this->fieldDefinitions = [];
$this->fieldStorageDefinitions = [];
}
}
Members
| Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
|---|---|---|---|---|---|
| EntityFieldManager::$activeFieldStorageDefinitions | protected | property | Static cache of active field storage definitions per entity type. | ||
| 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 | Overrides EntityFieldManagerInterface::clearCachedFieldDefinitions | ||
| EntityFieldManager::getActiveFieldStorageDefinitions | public | function | Gets the active field storage definitions for a content entity type. | ||
| EntityFieldManager::getBaseFieldDefinitions | public | function | Overrides EntityFieldManagerInterface::getBaseFieldDefinitions | ||
| EntityFieldManager::getExtraFields | public | function | Overrides EntityFieldManagerInterface::getExtraFields | ||
| EntityFieldManager::getFieldDefinitions | public | function | Overrides EntityFieldManagerInterface::getFieldDefinitions | ||
| EntityFieldManager::getFieldMap | public | function | Overrides EntityFieldManagerInterface::getFieldMap | ||
| EntityFieldManager::getFieldMapByFieldType | public | function | Overrides EntityFieldManagerInterface::getFieldMapByFieldType | ||
| EntityFieldManager::getFieldStorageDefinitions | public | function | Overrides EntityFieldManagerInterface::getFieldStorageDefinitions | ||
| EntityFieldManager::setFieldMap | public | function | Overrides EntityFieldManagerInterface::setFieldMap | ||
| EntityFieldManager::useCaches | public | function | Overrides EntityFieldManagerInterface::useCaches | ||
| EntityFieldManager::__construct | public | function | Constructs a new EntityFieldManager. | ||
| StringTranslationTrait::$stringTranslation | protected | property | The string translation service. | 1 | |
| 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. | 2 | |
| StringTranslationTrait::t | protected | function | Translates a string to the current language or to a given language. | ||
| TestEntityFieldManager::testClearEntityFieldInfo | public | function | Allows the static caches to be cleared. | ||
| 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. | 1 | |
| UseCacheBackendTrait::cacheSet | protected | function | Stores data in the persistent cache, respecting the use caches flag. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.