function EntityFieldManager::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Entity/EntityFieldManager.php \Drupal\Core\Entity\EntityFieldManager::__construct()
- 10 core/lib/Drupal/Core/Entity/EntityFieldManager.php \Drupal\Core\Entity\EntityFieldManager::__construct()
- 9 core/lib/Drupal/Core/Entity/EntityFieldManager.php \Drupal\Core\Entity\EntityFieldManager::__construct()
- 8.9.x core/lib/Drupal/Core/Entity/EntityFieldManager.php \Drupal\Core\Entity\EntityFieldManager::__construct()
Constructs a new EntityFieldManager.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entityTypeBundleInfo: The entity type bundle info.
\Drupal\Core\Entity\EntityDisplayRepositoryInterface $entityDisplayRepository: The entity display repository.
\Drupal\Core\TypedData\TypedDataManagerInterface $typedDataManager: The typed data manager.
\Drupal\Core\Language\LanguageManagerInterface $languageManager: The language manager.
\Drupal\Core\KeyValueStore\KeyValueFactoryInterface $keyValueFactory: The key-value factory.
\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler.
\Drupal\Core\Cache\CacheBackendInterface $cache_backend: The cache backend.
\Drupal\Core\Entity\EntityLastInstalledSchemaRepositoryInterface $entityLastInstalledSchemaRepository: The entity last installed schema repository.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityFieldManager.php, line 122
Class
- EntityFieldManager
- Manages the discovery of entity fields.
Namespace
Drupal\Core\EntityCode
public function __construct(protected EntityTypeManagerInterface $entityTypeManager, protected EntityTypeBundleInfoInterface $entityTypeBundleInfo, protected EntityDisplayRepositoryInterface $entityDisplayRepository, protected TypedDataManagerInterface $typedDataManager, protected LanguageManagerInterface $languageManager, protected KeyValueFactoryInterface $keyValueFactory, protected ModuleHandlerInterface $moduleHandler, CacheBackendInterface $cache_backend, protected EntityLastInstalledSchemaRepositoryInterface $entityLastInstalledSchemaRepository) {
$this->cacheBackend = $cache_backend;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.