You are here

public function ConfigHelper::__construct in Lightning Core 8

Same name and namespace in other branches
  1. 8.5 src/ConfigHelper.php \Drupal\lightning_core\ConfigHelper::__construct()
  2. 8.2 src/ConfigHelper.php \Drupal\lightning_core\ConfigHelper::__construct()
  3. 8.3 src/ConfigHelper.php \Drupal\lightning_core\ConfigHelper::__construct()
  4. 8.4 src/ConfigHelper.php \Drupal\lightning_core\ConfigHelper::__construct()

ConfigHelper constructor.

Parameters

\Drupal\Core\Extension\Extension $extension: The extension whose default config is being manipulated by this object.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

Overrides InstallStorage::__construct

File

src/ConfigHelper.php, line 49

Class

ConfigHelper
A facade to assist with manipulating default config.

Namespace

Drupal\lightning_core

Code

public function __construct(Extension $extension, ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct();
  $this->extension = $extension;
  $this->configFactory = $config_factory;
  $this->entityTypeManager = $entity_type_manager;
}