public function ConfigStorageController::__construct

Implements Drupal\Core\Entity\EntityStorageControllerInterface::__construct().

Sets basic variables.

File

drupal/core/lib/Drupal/Core/Config/Entity/ConfigStorageController.php, line 64
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($entityType) {
  $this->entityType = $entityType;
  $this->entityInfo = entity_get_info($entityType);
  $this->hookLoadArguments = array();
  $this->idKey = $this->entityInfo['entity_keys']['id'];
}