function ProjectSecurityData::getSemanticMinorVersion
Same name in other branches
- 8.9.x core/modules/update/src/ProjectSecurityData.php \Drupal\update\ProjectSecurityData::getSemanticMinorVersion()
- 10 core/modules/update/src/ProjectSecurityData.php \Drupal\update\ProjectSecurityData::getSemanticMinorVersion()
- 11.x 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 260
Class
- ProjectSecurityData
- Calculates a project's security coverage information.
Namespace
Drupal\updateCode
private function getSemanticMinorVersion($version) {
return (int) explode('.', $version)[1];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.