public function ConfigReverter::__construct in Configuration Update Manager 8
Constructs a ConfigReverter.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager: The entity manager.
\Drupal\Core\Config\StorageInterface $active_config_storage: The active config storage.
\Drupal\Core\Config\StorageInterface $extension_config_storage: The extension config storage.
\Drupal\Core\Config\StorageInterface $extension_optional_config_storage: The extension config storage for optional config items.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher: The event dispatcher.
File
- src/
ConfigReverter.php, line 77
Class
- ConfigReverter
- Provides methods related to config reverting, deleting, and importing.
Namespace
Drupal\config_updateCode
public function __construct(EntityTypeManagerInterface $entity_manager, StorageInterface $active_config_storage, StorageInterface $extension_config_storage, StorageInterface $extension_optional_config_storage, ConfigFactoryInterface $config_factory, EventDispatcherInterface $dispatcher) {
$this->entityManager = $entity_manager;
$this->activeConfigStorage = $active_config_storage;
$this->extensionConfigStorage = $extension_config_storage;
$this->extensionOptionalConfigStorage = $extension_optional_config_storage;
$this->configFactory = $config_factory;
$this->dispatcher = $dispatcher;
}