function ProjectRelease::__construct
Same name in other branches
- 9 core/modules/update/src/ProjectRelease.php \Drupal\update\ProjectRelease::__construct()
- 11.x core/modules/update/src/ProjectRelease.php \Drupal\update\ProjectRelease::__construct()
Constructs a ProjectRelease object.
Parameters
bool $published: Whether the release is published.
string $version: The release version.
string $release_url: The URL for the release.
string[]|null $release_types: The release types or NULL if not set.
bool|null $core_compatible: Whether the release is compatible with the site's version of Drupal core.
string|null $core_compatibility_message: The core compatibility message or NULL if not set.
string|null $download_url: The download URL or NULL if not available.
int|null $date: The release date in Unix timestamp format.
File
-
core/
modules/ update/ src/ ProjectRelease.php, line 93
Class
- ProjectRelease
- Provides a project release value object.
Namespace
Drupal\updateCode
private function __construct(bool $published, string $version, string $release_url, ?array $release_types, ?bool $core_compatible, ?string $core_compatibility_message, ?string $download_url, ?int $date) {
$this->published = $published;
$this->version = $version;
$this->releaseUrl = $release_url;
$this->releaseTypes = $release_types;
$this->coreCompatible = $core_compatible;
$this->coreCompatibilityMessage = $core_compatibility_message;
$this->downloadUrl = $download_url;
$this->date = $date;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.