function ModuleVersion::getMajorVersion

Same name in other branches
  1. 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\update

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.