public function ModuleVersion::getMajorVersion in Drupal 8
Same name and namespace in other branches
- 9 core/modules/update/src/ModuleVersion.php \Drupal\update\ModuleVersion::getMajorVersion()
Gets the major version.
Return value
string The major version.
File
- core/
modules/ update/ src/ ModuleVersion.php, line 117
Class
- ModuleVersion
- Provides a module version value object.
Namespace
Drupal\updateCode
public function getMajorVersion() {
return $this->majorVersion;
}