public function ConfigStorageController::__construct

Constructs a ConfigStorageController object.

Parameters

string $entity_type: The entity type for which the instance is created.

array $entity_info: An array of entity info for the entity type.

\Drupal\Core\Config\ConfigFactory $config_factory: The config factory service.

\Drupal\Core\Config\StorageInterface $config_storage: The config storage service.

Overrides EntityStorageControllerBase::__construct

2 calls to ConfigStorageController::__construct()
FieldInstanceStorageController::__construct in drupal/core/modules/field/lib/Drupal/field/FieldInstanceStorageController.php
Constructs a FieldInstanceStorageController object.
FieldStorageController::__construct in drupal/core/modules/field/lib/Drupal/field/FieldStorageController.php
Constructs a FieldStorageController object.
2 methods override ConfigStorageController::__construct()
FieldInstanceStorageController::__construct in drupal/core/modules/field/lib/Drupal/field/FieldInstanceStorageController.php
Constructs a FieldInstanceStorageController object.
FieldStorageController::__construct in drupal/core/modules/field/lib/Drupal/field/FieldStorageController.php
Constructs a FieldStorageController object.

File

drupal/core/lib/Drupal/Core/Config/Entity/ConfigStorageController.php, line 76
Definition of Drupal\Core\Config\Entity\ConfigStorageController.

Class

ConfigStorageController
Defines the storage controller class for configuration entities.

Namespace

Drupal\Core\Config\Entity

Code

public function __construct($entity_type, array $entity_info, ConfigFactory $config_factory, StorageInterface $config_storage) {
  parent::__construct($entity_type, $entity_info);
  $this->idKey = $this->entityInfo['entity_keys']['id'];
  if (isset($this->entityInfo['entity_keys']['status'])) {
    $this->statusKey = $this->entityInfo['entity_keys']['status'];
  }
  else {
    $this->statusKey = FALSE;
  }
  $this->configFactory = $config_factory;
  $this->configStorage = $config_storage;
}