You are here

protected static function MissingProjectInfo::missingProjectInfoCheck in Automatic Updates 7

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 ReadinessCheckers/MissingProjectInfo.php
Run check.

File

ReadinessCheckers/MissingProjectInfo.php, line 23

Class

MissingProjectInfo
Missing project info checker.

Code

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;
}