function ProjectRelease::__construct

Same name and namespace in other branches
  1. 11.x core/modules/update/src/ProjectRelease.php \Drupal\update\ProjectRelease::__construct()
  2. 10 core/modules/update/src/ProjectRelease.php \Drupal\update\ProjectRelease::__construct()
  3. 9 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 $releaseUrl: The URL for the release.

string[]|null $releaseTypes: The release types or NULL if not set.

bool|null $coreCompatible: Whether the release is compatible with the site's version of Drupal core.

string|null $coreCompatibilityMessage: The core compatibility message or NULL if not set.

string|null $downloadUrl: 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 37

Class

ProjectRelease
Provides a project release value object.

Namespace

Drupal\update

Code

private function __construct(private bool $published, private string $version, private string $releaseUrl, private ?array $releaseTypes, private ?bool $coreCompatible, private ?string $coreCompatibilityMessage, private ?string $downloadUrl, private ?int $date) {
}

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