function ExtensionVersion::getMajorVersion

Same name in other branches
  1. 9 core/lib/Drupal/Core/Extension/ExtensionVersion.php \Drupal\Core\Extension\ExtensionVersion::getMajorVersion()
  2. 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\Extension

Code

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.