private function ModuleVersion::__construct in Drupal 9
Same name and namespace in other branches
- 8 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\updateCode
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;
}