function ConfigSingleImportForm::__construct

Same name and namespace in other branches
  1. 10 core/modules/config/src/Form/ConfigSingleImportForm.php \Drupal\config\Form\ConfigSingleImportForm::__construct()
  2. 9 core/modules/config/src/Form/ConfigSingleImportForm.php \Drupal\config\Form\ConfigSingleImportForm::__construct()
  3. 8.9.x core/modules/config/src/Form/ConfigSingleImportForm.php \Drupal\config\Form\ConfigSingleImportForm::__construct()
  4. main core/modules/config/src/Form/ConfigSingleImportForm.php \Drupal\config\Form\ConfigSingleImportForm::__construct()

Constructs a new ConfigSingleImportForm.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.

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

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

\Drupal\Core\Config\ConfigImporterFactory $configImporterFactory: The config importer factory.

File

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

Class

ConfigSingleImportForm
Provides a form for importing a single configuration file.

Namespace

Drupal\config\Form

Code

public function __construct(protected EntityTypeManagerInterface $entityTypeManager, protected StorageInterface $configStorage, protected RendererInterface $renderer, protected ConfigImporterFactory $configImporterFactory) {
}

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