function ProjectSecurityData::getSemanticMinorVersion
Same name and namespace in other branches
- 11.x core/modules/update/src/ProjectSecurityData.php \Drupal\update\ProjectSecurityData::getSemanticMinorVersion()
- 10 core/modules/update/src/ProjectSecurityData.php \Drupal\update\ProjectSecurityData::getSemanticMinorVersion()
- 8.9.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.
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.