public function MultiversionMigration::installDependencies in Multiversion 8
Return value
\Drupal\multiversion\MultiversionMigrationInterface
Overrides MultiversionMigrationInterface::installDependencies
File
- src/
MultiversionMigration.php, line 65
Class
Namespace
Drupal\multiversionCode
public function installDependencies() {
$modules = [
'migrate',
'migrate_drupal',
];
foreach ($modules as $i => $module) {
if ($this->moduleHandler
->moduleExists($module)) {
unset($modules[$i]);
}
}
if (!empty($modules)) {
$this->moduleInstaller
->install($modules, TRUE);
}
return $this;
}