function UpdateServerProjectInfo::__construct
Same name and namespace in other branches
- main core/modules/update/src/UpdateServerProjectInfo.php \Drupal\update\UpdateServerProjectInfo::__construct()
A value object to track available updates.
Parameters
string|null $status: The status of the available update.
array $supportedBranches: The branches the update supports.
array $releases: The releases available for the project.
string $title: The title of the project.
string $link: A link to the project.
int|null $fetchStatus: One of:
- UpdateFetcherInterface::NOT_CHECKED
- UpdateFetcherInterface::UNKNOWN
- UpdateFetcherInterface::NOT_FETCHED
- UpdateFetcherInterface::FETCH_PENDING.
int|null $lastFetch: When the last project was fetched.
string|null $shortName: The shortname of the project.
string|null $terms: Release type, one of:
- Security update
- Unsupported
- Insecure.
File
-
core/
modules/ update/ src/ UpdateServerProjectInfo.php, line 46
Class
- UpdateServerProjectInfo
- Update server project information.
Namespace
Drupal\updateCode
public function __construct(public ?string $status = NULL, public array $supportedBranches = [], public array $releases = [], public string $title = '', public string $link = '', public ?int $fetchStatus = NULL, public ?int $lastFetch = NULL, public ?string $shortName = NULL, public ?string $terms = NULL) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.