You are here

protected function ConfigurationImportManager::findMissingModules in Configuration Management 7.3

1 call to ConfigurationImportManager::findMissingModules()
ConfigurationImportManager::import in src/Helpers/ConfigurationImportManager.php
Import configurations into the database.

File

src/Helpers/ConfigurationImportManager.php, line 78
ConfigurationExportManager.php handles the export of configurations.

Class

ConfigurationImportManager

Namespace

Configuration\Helpers

Code

protected function findMissingModules() {
  $this->required_modules = $this->configuration_list
    ->getModules();
  $this->moduleManager = new DrupalModulesManager($this->configuration_manager);
  $modules = $this->moduleManager
    ->findDependencies($this->required_modules);
  $missing = $this->moduleManager
    ->missing();
  if ($missing) {
    throw new \Exception("The following modules are missing: " . implode(', ', $missing));
  }
}