You are here

public static function ProjectCollector::getOldestSupportedMinor in Upgrade Status 8.3

Return the oldest supported minor version for the current core major.

Return value

string Oldest supported core version number.

1 call to ProjectCollector::getOldestSupportedMinor()
DeprecationAnalyzer::categorizeMessage in src/DeprecationAnalyzer.php
Annotate and categorize the error message.

File

src/ProjectCollector.php, line 562

Class

ProjectCollector
Collects projects and their associated metadata collated for Upgrade Status.

Namespace

Drupal\upgrade_status

Code

public static function getOldestSupportedMinor() : string {
  $major = (int) \Drupal::VERSION;
  switch ($major) {
    case 8:
      return '8.9';
    case 9:
      return '9.1';
  }
  return '';
}