ConfigSingleImportForm::__construct

public ConfigSingleImportForm::__construct(EntityManagerInterface $entity_manager, StorageInterface $config_storage, RendererInterface $renderer, EventDispatcherInterface $event_dispatcher, ConfigManagerInterface $config_manager, LockBackendInterface $lock, TypedConfigManagerInterface $typed_config, ModuleHandlerInterface $module_handler, ModuleInstallerInterface $module_installer, ThemeHandlerInterface $theme_handler)

Constructs a new ConfigSingleImportForm.

Parameters

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.

\Drupal\Core\Config\StorageInterface $config_storage: The config storage.

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

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher used to notify subscribers of config import events.

\Drupal\Core\Config\ConfigManagerInterface $config_manager: The configuration manager.

\Drupal\Core\Lock\LockBackendInterface $lock: The lock backend to ensure multiple imports do not occur at the same time.

\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.

File

core/modules/config/src/Form/ConfigSingleImportForm.php, line 139

Class

ConfigSingleImportForm
Provides a form for importing a single configuration file.

Namespace

Drupal\config\Form

Code

public function __construct(EntityManagerInterface $entity_manager, StorageInterface $config_storage, RendererInterface $renderer, EventDispatcherInterface $event_dispatcher, ConfigManagerInterface $config_manager, LockBackendInterface $lock, TypedConfigManagerInterface $typed_config, ModuleHandlerInterface $module_handler, ModuleInstallerInterface $module_installer, ThemeHandlerInterface $theme_handler) {
  $this->entityManager = $entity_manager;
  $this->configStorage = $config_storage;
  $this->renderer = $renderer;

  // Services necessary for \Drupal\Core\Config\ConfigImporter.
  $this->eventDispatcher = $event_dispatcher;
  $this->configManager = $config_manager;
  $this->lock = $lock;
  $this->typedConfigManager = $typed_config;
  $this->moduleHandler = $module_handler;
  $this->moduleInstaller = $module_installer;
  $this->themeHandler = $theme_handler;
}
doc_Drupal
2016-10-29 08:54:28
Comments
Leave a Comment

Please login to continue.