MissingProjectInfo.php in Automatic Updates 7
File
ReadinessCheckers/MissingProjectInfo.php
View source
<?php
class MissingProjectInfo implements ReadinessCheckerInterface {
use IgnoredPathsTrait;
use ProjectInfoTrait;
public static function run() {
return static::missingProjectInfoCheck();
}
protected static function missingProjectInfoCheck() {
$messages = [];
foreach (static::getInfos() as $extension_name => $info) {
if (static::isIgnoredPath($info['install path'])) {
continue;
}
if (!$info['version']) {
$messages[] = t('The project "@extension" can not be updated because its version is either undefined or a dev release.', [
'@extension' => $info['name'],
]);
}
}
return $messages;
}
}