function ConfigSync::__construct

Same name in other branches
  1. 8.9.x core/modules/config/src/Form/ConfigSync.php \Drupal\config\Form\ConfigSync::__construct()
  2. 10 core/modules/config/src/Form/ConfigSync.php \Drupal\config\Form\ConfigSync::__construct()
  3. 11.x core/modules/config/src/Form/ConfigSync.php \Drupal\config\Form\ConfigSync::__construct()

Constructs the object.

Parameters

\Drupal\Core\Config\StorageInterface $sync_storage: The source storage.

\Drupal\Core\Config\StorageInterface $active_storage: The target storage.

\Drupal\Core\Config\StorageInterface $snapshot_storage: The snapshot storage.

\Drupal\Core\Lock\LockBackendInterface $lock: The lock object.

\Symfony\Contracts\EventDispatcher\EventDispatcherInterface $event_dispatcher: Event dispatcher.

\Drupal\Core\Config\ConfigManagerInterface $config_manager: Configuration manager.

\Drupal\Core\Config\TypedConfigManagerInterface $typed_config: The typed configuration manager.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\Extension\ModuleInstallerInterface $module_installer: The module installer.

\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler.

\Drupal\Core\Render\RendererInterface $renderer: The renderer.

\Drupal\Core\Extension\ModuleExtensionList $extension_list_module: The module extension list

\Drupal\Core\Config\ImportStorageTransformer $import_transformer: The import transformer service.

\Drupal\Core\Extension\ThemeExtensionList $extension_list_theme: The theme extension list.

File

core/modules/config/src/Form/ConfigSync.php, line 164

Class

ConfigSync
Construct the storage changes in a configuration synchronization form.

Namespace

Drupal\config\Form

Code

public function __construct(StorageInterface $sync_storage, StorageInterface $active_storage, StorageInterface $snapshot_storage, LockBackendInterface $lock, EventDispatcherInterface $event_dispatcher, ConfigManagerInterface $config_manager, TypedConfigManagerInterface $typed_config, ModuleHandlerInterface $module_handler, ModuleInstallerInterface $module_installer, ThemeHandlerInterface $theme_handler, RendererInterface $renderer, ModuleExtensionList $extension_list_module, ImportStorageTransformer $import_transformer, ThemeExtensionList $extension_list_theme = NULL) {
    $this->syncStorage = $sync_storage;
    $this->activeStorage = $active_storage;
    $this->snapshotStorage = $snapshot_storage;
    $this->lock = $lock;
    $this->eventDispatcher = $event_dispatcher;
    $this->configManager = $config_manager;
    $this->typedConfigManager = $typed_config;
    $this->moduleHandler = $module_handler;
    $this->moduleInstaller = $module_installer;
    $this->themeHandler = $theme_handler;
    $this->renderer = $renderer;
    $this->moduleExtensionList = $extension_list_module;
    $this->importTransformer = $import_transformer;
    if ($extension_list_theme === NULL) {
        @trigger_error('Calling ' . __METHOD__ . ' without the $extension_list_theme argument is deprecated in drupal:10.1.0 and will be required in drupal:11.0.0. See https://www.drupal.org/node/3284397', E_USER_DEPRECATED);
        $extension_list_theme = \Drupal::service('extension.list.theme');
    }
    $this->themeExtensionList = $extension_list_theme;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.