function ConfigImporterFactory::get

Creates a ConfigImporter instance.

Parameters

\Drupal\Core\Config\StorageComparer $storage_comparer: The storage comparer object. The type is the class and not StorageComparerInterface because that is due to be removed: see https://www.drupal.org/project/drupal/issues/3410037.

Return value

\Drupal\Core\Config\ConfigImporter A config importer instance.

File

core/lib/Drupal/Core/Config/ConfigImporterFactory.php, line 72

Class

ConfigImporterFactory
Factory class to create config importer objects.

Namespace

Drupal\Core\Config

Code

public function get(StorageComparer $storage_comparer) : ConfigImporter {
  return new ConfigImporter($storage_comparer, $this->eventDispatcher, $this->configManager, $this->lock, $this->typedConfigManager, $this->moduleHandler, $this->moduleInstaller, $this->themeHandler, $this->stringTranslation, $this->moduleExtensionList, $this->themeExtensionList);
}

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