function ModuleVersion::__construct

Same name in other branches
  1. 8.9.x core/modules/update/src/ModuleVersion.php \Drupal\update\ModuleVersion::__construct()

Constructs a ModuleVersion object.

Parameters

string $major_version: The major version.

string|null $version_extra: The extra version string.

File

core/modules/update/src/ModuleVersion.php, line 95

Class

ModuleVersion
Provides a module version value object.

Namespace

Drupal\update

Code

private function __construct($major_version, $version_extra) {
    @trigger_error(__CLASS__ . ' is deprecated in drupal:9.2.0 and will be removed before drupal:10.0.0. Use The \\Drupal\\Core\\Extension\\ExtensionVersion instead. As an internal class, ExtensionVersion may also be removed in a minor release.', E_USER_DEPRECATED);
    $this->majorVersion = $major_version;
    $this->versionExtra = $version_extra;
}

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