function ExtensionVersion::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/Extension/ExtensionVersion.php \Drupal\Core\Extension\ExtensionVersion::__construct()
- 10 core/lib/Drupal/Core/Extension/ExtensionVersion.php \Drupal\Core\Extension\ExtensionVersion::__construct()
Constructs an ExtensionVersion object.
Parameters
string $major_version: The major version.
string|null $minor_version: The minor version.
string|null $version_extra: The extra version string.
File
-
core/
lib/ Drupal/ Core/ Extension/ ExtensionVersion.php, line 103
Class
- ExtensionVersion
- Provides an extension version value object.
Namespace
Drupal\Core\ExtensionCode
private function __construct(string $major_version, ?string $minor_version, ?string $version_extra) {
$this->majorVersion = $major_version;
$this->minorVersion = $minor_version;
$this->versionExtra = $version_extra;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.