public function ConfigHelper::__construct in Lightning Core 8
Same name and namespace in other branches
- 8.5 src/ConfigHelper.php \Drupal\lightning_core\ConfigHelper::__construct()
- 8.2 src/ConfigHelper.php \Drupal\lightning_core\ConfigHelper::__construct()
- 8.3 src/ConfigHelper.php \Drupal\lightning_core\ConfigHelper::__construct()
- 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_coreCode
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;
}