class TestEntityFieldManager in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php \Drupal\Tests\Core\Entity\TestEntityFieldManager
Hierarchy
- class \Drupal\Core\Entity\EntityFieldManager implements EntityFieldManagerInterface uses UseCacheBackendTrait, StringTranslationTrait
- class \Drupal\Tests\Core\Entity\TestEntityFieldManager
Expanded class hierarchy of TestEntityFieldManager
File
- core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityFieldManagerTest.php, line 795 - Contains \Drupal\Tests\Core\Entity\EntityFieldManagerTest.
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityFieldManager:: |
protected | property | Static cache of active field storage definitions per entity type. | |
EntityFieldManager:: |
protected | property | Static cache of base field definitions. | |
EntityFieldManager:: |
protected | property | The entity display repository. | |
EntityFieldManager:: |
protected | property | The entity last installed schema repository. | |
EntityFieldManager:: |
protected | property | The entity type bundle info. | |
EntityFieldManager:: |
protected | property | The entity type manager. | |
EntityFieldManager:: |
protected | property | Extra fields by bundle. | |
EntityFieldManager:: |
protected | property | Static cache of field definitions per bundle and entity type. | |
EntityFieldManager:: |
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:: |
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:: |
protected | property | Static cache of field storage definitions per entity type. | |
EntityFieldManager:: |
protected | property | The key-value factory. | |
EntityFieldManager:: |
protected | property | The language manager. | |
EntityFieldManager:: |
protected | property | The module handler. | |
EntityFieldManager:: |
protected | property | The typed data manager. | |
EntityFieldManager:: |
protected | function | Builds base field definitions for an entity type. | |
EntityFieldManager:: |
protected | function | Builds field definitions for a specific bundle within an entity type. | |
EntityFieldManager:: |
protected | function | Builds field storage definitions for an entity type. | |
EntityFieldManager:: |
public | function |
Clears static and persistent field definition caches. Overrides EntityFieldManagerInterface:: |
|
EntityFieldManager:: |
public | function | Gets the active field storage definitions for a content entity type. | |
EntityFieldManager:: |
public | function |
Gets the base field definitions for a content entity type. Overrides EntityFieldManagerInterface:: |
|
EntityFieldManager:: |
public | function |
Gets the "extra fields" for a bundle. Overrides EntityFieldManagerInterface:: |
|
EntityFieldManager:: |
public | function |
Gets the field definitions for a specific bundle. Overrides EntityFieldManagerInterface:: |
|
EntityFieldManager:: |
public | function |
Gets a lightweight map of fields across bundles. Overrides EntityFieldManagerInterface:: |
|
EntityFieldManager:: |
public | function |
Gets a lightweight map of fields across bundles filtered by field type. Overrides EntityFieldManagerInterface:: |
|
EntityFieldManager:: |
public | function |
Gets the field storage definitions for a content entity type. Overrides EntityFieldManagerInterface:: |
|
EntityFieldManager:: |
public | function |
Sets a lightweight map of fields across bundles. Overrides EntityFieldManagerInterface:: |
|
EntityFieldManager:: |
public | function |
Disable the use of caches. Overrides EntityFieldManagerInterface:: |
|
EntityFieldManager:: |
public | function | Constructs a new EntityFieldManager. | |
StringTranslationTrait:: |
protected | property | The string translation service. | 4 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. | |
TestEntityFieldManager:: |
public | function | Allows the static caches to be cleared. | |
UseCacheBackendTrait:: |
protected | property | Cache backend instance. | |
UseCacheBackendTrait:: |
protected | property | Flag whether caches should be used or skipped. | |
UseCacheBackendTrait:: |
protected | function | Fetches from the cache backend, respecting the use caches flag. | |
UseCacheBackendTrait:: |
protected | function | Stores data in the persistent cache, respecting the use caches flag. |