You are here

private function ProjectSecurityData::getSemanticMinorVersion in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/update/src/ProjectSecurityData.php \Drupal\update\ProjectSecurityData::getSemanticMinorVersion()
  2. 9 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.

File

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

Class

ProjectSecurityData
Calculates a project's security coverage information.

Namespace

Drupal\update

Code

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