function ModuleVersion::getMajorVersion

Same name in other branches
  1. 8.9.x 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 129

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.