function ExtensionVersion::getMajorVersion
Same name in other branches
- 9 core/lib/Drupal/Core/Extension/ExtensionVersion.php \Drupal\Core\Extension\ExtensionVersion::getMajorVersion()
- 10 core/lib/Drupal/Core/Extension/ExtensionVersion.php \Drupal\Core\Extension\ExtensionVersion::getMajorVersion()
Gets the major version.
Return value
string The major version.
File
-
core/
lib/ Drupal/ Core/ Extension/ ExtensionVersion.php, line 134
Class
- ExtensionVersion
- Provides an extension version value object.
Namespace
Drupal\Core\ExtensionCode
public function getMajorVersion() : string {
return $this->majorVersion;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.