class TestEntityFieldManager

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php \Drupal\Tests\Core\Entity\TestEntityFieldManager
  2. 8.9.x 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 869

Namespace

Drupal\Tests\Core\Entity
View source
class TestEntityFieldManager extends EntityFieldManager {
    
    /**
     * Allows the static caches to be cleared.
     */
    public function testClearEntityFieldInfo() : void {
        $this->baseFieldDefinitions = [];
        $this->fieldDefinitions = [];
        $this->fieldStorageDefinitions = [];
    }

}

Members

Title Sort descending Modifiers Object type Summary 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::$entityLastInstalledSchemaRepository protected property The entity last installed schema repository.
EntityFieldManager::$entityTypeBundleInfo protected property The entity type bundle info.
EntityFieldManager::$entityTypeManager protected property The entity type manager.
EntityFieldManager::$extraFields protected property Extra fields info, if initialized.
EntityFieldManager::$fieldDefinitions protected property Static cache of field definitions per bundle and entity type.
EntityFieldManager::$fieldMap protected property An array of lightweight maps of fields, keyed by entity type.
EntityFieldManager::$fieldMapByFieldType protected property An array of lightweight maps of fields, keyed by field type.
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
EntityFieldManager::getActiveFieldStorageDefinitions public function Gets the active field storage definitions for a content entity type.
EntityFieldManager::getBaseFieldDefinitions public function
EntityFieldManager::getExtraFields public function
EntityFieldManager::getFieldDefinitions public function
EntityFieldManager::getFieldMap public function
EntityFieldManager::getFieldMapByFieldType public function
EntityFieldManager::getFieldStorageDefinitions public function
EntityFieldManager::loadExtraFields protected function Loads extra fields from cache, or rebuilds them.
EntityFieldManager::setFieldMap public function
EntityFieldManager::useCaches public function
EntityFieldManager::__construct public function Constructs a new EntityFieldManager.
StringTranslationTrait::$stringTranslation protected property The string translation service. 3
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.
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.