function ContentEntityStorageBase::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php \Drupal\Core\Entity\ContentEntityStorageBase::__construct()
- 10 core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php \Drupal\Core\Entity\ContentEntityStorageBase::__construct()
- 9 core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php \Drupal\Core\Entity\ContentEntityStorageBase::__construct()
- 8.9.x core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php \Drupal\Core\Entity\ContentEntityStorageBase::__construct()
Constructs a ContentEntityStorageBase object.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.
\Drupal\Core\Entity\EntityFieldManagerInterface $entityFieldManager: The entity field manager.
\Drupal\Core\Cache\CacheBackendInterface $cacheBackend: The cache backend to be used.
\Drupal\Core\Cache\MemoryCache\MemoryCacheInterface $memory_cache: The memory cache backend.
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entityTypeBundleInfo: The entity type bundle info.
Overrides EntityStorageBase::__construct
1 call to ContentEntityStorageBase::__construct()
- SqlContentEntityStorage::__construct in core/
lib/ Drupal/ Core/ Entity/ Sql/ SqlContentEntityStorage.php - Constructs a SqlContentEntityStorage object.
1 method overrides ContentEntityStorageBase::__construct()
- SqlContentEntityStorage::__construct in core/
lib/ Drupal/ Core/ Entity/ Sql/ SqlContentEntityStorage.php - Constructs a SqlContentEntityStorage object.
File
-
core/
lib/ Drupal/ Core/ Entity/ ContentEntityStorageBase.php, line 57
Class
- ContentEntityStorageBase
- Base class for content entity storage handlers.
Namespace
Drupal\Core\EntityCode
public function __construct(EntityTypeInterface $entity_type, protected EntityFieldManagerInterface $entityFieldManager, protected CacheBackendInterface $cacheBackend, MemoryCacheInterface $memory_cache, protected EntityTypeBundleInfoInterface $entityTypeBundleInfo) {
parent::__construct($entity_type, $memory_cache);
$this->bundleKey = $this->entityType
->getKey('bundle');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.