public function ExtensionVersion::getMajorVersion in Drupal 9
Same name and namespace in other branches
- 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;
}