class TestEntityFieldManager

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php \Drupal\Tests\Core\Entity\TestEntityFieldManager
  2. 10 core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php \Drupal\Tests\Core\Entity\TestEntityFieldManager
  3. 11.x core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php \Drupal\Tests\Core\Entity\TestEntityFieldManager

Hierarchy

Expanded class hierarchy of TestEntityFieldManager

File

core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php, line 777

Namespace

Drupal\Tests\Core\Entity
View 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 Clears static and persistent field definition caches. Overrides EntityFieldManagerInterface::clearCachedFieldDefinitions
EntityFieldManager::getActiveFieldStorageDefinitions public function Gets the active field storage definitions for a content entity type.
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. 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.