You are here

public static function ProjectCollector::getDrupalCoreMajorVersion in Upgrade Status 8.3

Returns current core's major version.

Return value

int Version converted to int.

4 calls to ProjectCollector::getDrupalCoreMajorVersion()
DeprecationAnalyzer::categorizeMessage in src/DeprecationAnalyzer.php
Annotate and categorize the error message.
ProjectCollector::isCompatibleWithNextMajorDrupal in src/ProjectCollector.php
Checks constraint compatibility with the next major Drupal core version.
UpgradeStatusForm::__construct in src/Form/UpgradeStatusForm.php
Constructs a Drupal\upgrade_status\Form\UpgradeStatusForm.
upgrade_status_help in ./upgrade_status.module
Implements hook_help().

File

src/ProjectCollector.php, line 579

Class

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

Namespace

Drupal\upgrade_status

Code

public static function getDrupalCoreMajorVersion() : int {
  return (int) \Drupal::VERSION;
}