// Removing drupal/ from package name for better user presentation.
$project=str_replace('drupal/','',$package);
$missing_projects[]=$project;
}
if($missing_projects){
$event->addError($missing_projects,$this->t('Automatic Updates can only update projects that were installed via Composer. The following packages are not installed through composer:'));
$event->addError($missing_projects,$this->t('Automatic Updates can only update projects that were installed via Composer. The following packages are not installed through composer:'));
}
}
...
...
@@ -94,4 +59,55 @@ class PackagesInstalledWithComposerValidator implements EventSubscriberInterface
];
}
/**
* Gets the packages which aren't installed via composer.