You are here

public function BundleEntityStorage::__construct in Lightning Core 8.2

Same name and namespace in other branches
  1. 8.5 src/BundleEntityStorage.php \Drupal\lightning_core\BundleEntityStorage::__construct()
  2. 8 src/BundleEntityStorage.php \Drupal\lightning_core\BundleEntityStorage::__construct()
  3. 8.3 src/BundleEntityStorage.php \Drupal\lightning_core\BundleEntityStorage::__construct()
  4. 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.

Overrides ConfigEntityStorage::__construct

File

src/BundleEntityStorage.php, line 36

Class

BundleEntityStorage
A storage handler for entity types that are bundles of other entity types.

Namespace

Drupal\lightning_core

Code

public function __construct($entity_type, $config_factory, $uuid_service, $language_manager, EntityAccessControlHandlerInterface $access_handler) {
  parent::__construct($entity_type, $config_factory, $uuid_service, $language_manager);
  $this->accessHandler = $access_handler;
}