You are here

public function ConfigImportEventSubscriber::__construct in Config Ignore Keys 8

ConfigImportEventSubscriber constructor.

Parameters

\Drupal\Core\State\StateInterface $state: The state service.

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

\Drupal\config_ignore_keys\Plugin\Manager\ConfigurationIgnorePluginManager $pluginManager: The plugin manager.

\Drupal\Core\Language\LanguageManager $languageManager: The language manager.

\Drupal\language\Config\LanguageConfigFactoryOverride $languageConfigFactoryOverride: The language config override factory.

File

src/EventSubscriber/ConfigImportEventSubscriber.php, line 79

Class

ConfigImportEventSubscriber
Class ConfigImportEventSubscriber.

Namespace

Drupal\config_ignore_keys\EventSubscriber

Code

public function __construct(StateInterface $state, ConfigFactoryInterface $configFactory, ConfigurationIgnorePluginManager $pluginManager, LanguageManager $languageManager, LanguageConfigFactoryOverride $languageConfigFactoryOverride) {
  $this->state = $state;
  $this->configFactory = $configFactory;
  $this->pluginManager = $pluginManager;
  $this->languageManager = $languageManager;
  $this->languageConfigFactoryOverride = $languageConfigFactoryOverride;
  $this->plugins = $pluginManager
    ->getDefinitions();
}