protected function MissingProjectInfo::missingProjectInfoCheck in Automatic Updates 8
Check for projects missing project info.
Return value
array An array of translatable strings if any checks fail.
1 call to MissingProjectInfo::missingProjectInfoCheck()
- MissingProjectInfo::run in src/
ReadinessChecker/ MissingProjectInfo.php - Run check.
File
- src/
ReadinessChecker/ MissingProjectInfo.php, line 68
Class
- MissingProjectInfo
- Missing project info checker.
Namespace
Drupal\automatic_updates\ReadinessCheckerCode
protected function missingProjectInfoCheck() {
$messages = [];
foreach ($this
->getExtensionsTypes() as $extension_type) {
foreach ($this
->getInfos($extension_type) as $info) {
if ($this
->isIgnoredPath($info['install path'])) {
continue;
}
if (!$info['version']) {
$messages[] = $this
->t('The project "@extension" can not be updated because its version is either undefined or a dev release.', [
'@extension' => $info['name'],
]);
}
}
}
return $messages;
}