You are here

private function ProjectSecurityData::getSemanticMinorVersion in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/update/src/ProjectSecurityData.php \Drupal\update\ProjectSecurityData::getSemanticMinorVersion()
  2. 10 core/modules/update/src/ProjectSecurityData.php \Drupal\update\ProjectSecurityData::getSemanticMinorVersion()

Gets the minor version for a semantic version string.

Parameters

string $version: The semantic version string.

Return value

int The minor version as an integer.

3 calls to ProjectSecurityData::getSemanticMinorVersion()
ProjectSecurityData::getAdditionalSecurityCoveredMinors in core/modules/update/src/ProjectSecurityData.php
Gets the number of additional minor releases with security coverage.
ProjectSecurityData::getCoverageInfo in core/modules/update/src/ProjectSecurityData.php
Gets the security coverage information for a project.
ProjectSecurityData::getSecurityCoverageUntilVersion in core/modules/update/src/ProjectSecurityData.php
Gets the release the current minor will receive security coverage until.

File

core/modules/update/src/ProjectSecurityData.php, line 246

Class

ProjectSecurityData
Calculates a project's security coverage information.

Namespace

Drupal\update

Code

private function getSemanticMinorVersion($version) {
  return (int) explode('.', $version)[1];
}