public function BundleEntityStorage::__construct in Lightning Core 8.5
Same name and namespace in other branches
- 8 src/BundleEntityStorage.php \Drupal\lightning_core\BundleEntityStorage::__construct()
- 8.2 src/BundleEntityStorage.php \Drupal\lightning_core\BundleEntityStorage::__construct()
- 8.3 src/BundleEntityStorage.php \Drupal\lightning_core\BundleEntityStorage::__construct()
- 8.4 src/BundleEntityStorage.php \Drupal\lightning_core\BundleEntityStorage::__construct()
BundleEntityStorage constructor.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Drupal\Component\Uuid\UuidInterface $uuid_service: The UUID generator.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
\Drupal\Core\Entity\EntityAccessControlHandlerInterface $access_handler: The access control handler.
\Drupal\Core\Cache\MemoryCache\MemoryCacheInterface $memory_cache: The memory cache.
Overrides ConfigEntityStorage::__construct
File
- src/
BundleEntityStorage.php, line 42
Class
- BundleEntityStorage
- A storage handler for entity types that are bundles of other entity types.
Namespace
Drupal\lightning_coreCode
public function __construct(EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory, UuidInterface $uuid_service, LanguageManagerInterface $language_manager, EntityAccessControlHandlerInterface $access_handler, MemoryCacheInterface $memory_cache) {
parent::__construct($entity_type, $config_factory, $uuid_service, $language_manager, $memory_cache);
$this->accessHandler = $access_handler;
}