public function ConfigSelector::__construct in Configuration selector 8
Same name and namespace in other branches
- 8.2 src/ConfigSelector.php \Drupal\config_selector\ConfigSelector::__construct()
ConfigSelector constructor.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Drupal\Core\Config\ConfigManagerInterface $config_manager: The config manager.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Psr\Log\LoggerInterface $logger: The logger.
\Drupal\Core\State\StateInterface $state: The state service.
File
- src/
ConfigSelector.php, line 80
Class
- ConfigSelector
- Selects configuration to enable after a module install or uninstall.
Namespace
Drupal\config_selectorCode
public function __construct(ConfigFactoryInterface $config_factory, ConfigManagerInterface $config_manager, EntityTypeManagerInterface $entity_type_manager, LoggerInterface $logger, StateInterface $state) {
$this->configFactory = $config_factory;
$this->configManager = $config_manager;
$this->entityTypeManager = $entity_type_manager;
$this->logger = $logger;
$this->state = $state;
}