You are here

public function ExtensionVersion::getMajorVersion in Drupal 10

Same name and namespace in other branches
  1. 9 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\Extension

Code

public function getMajorVersion() : string {
  return $this->majorVersion;
}