function UpdateProject::__construct
Same name and namespace in other branches
- main core/modules/update/src/UpdateProject.php \Drupal\update\UpdateProject::__construct()
A value object to track available updates.
Parameters
string $name: The name of the project.
array $info: The content of the info yml.
array|null $includes: The modules or themes included in this project.
string|null $projectType: The project type:
- module
- theme
- uninstalled-module
- uninstalled-theme.
array|null $disabled: The modules that are disabled.
string|int|null $existingMajor: The existing major.
int|string|null $status: One of:
- UpdateManagerInterface::NOT_SECURE
- UpdateManagerInterface::REVOKED
- UpdateManagerInterface::NOT_SUPPORTED
- UpdateManagerInterface::NOT_CURRENT
- UpdateManagerInterface::CURRENT.
array $extra: The extra information about the module.
string|null $title: The project label.
string|null $link: The link to the project.
string|null $reason: The reason for the status.
string|bool|null $projectStatus: The status of the available update.
string|\Stringable $existingVersion: The current version.
int|null $fetchStatus: One of:
- UpdateFetcherInterface::NOT_CHECKED
- UpdateFetcherInterface::UNKNOWN
- UpdateFetcherInterface::NOT_FETCHED
- UpdateFetcherInterface::FETCH_PENDING.
string|null $recommended: The recommended version.
array $also: The also available information.
array $releases: All releases for this project.
string|null $latestVersion: The newest version available.
string|null $devVersion: Any dev versions available.
string|null $installType: The type of install e.g. 'official'.
string|null $latestDev: The most recent dev version.
int|string|null $datestamp: The datestamp of the release.
array|null $securityUpdates: Any security updates available.
File
-
core/
modules/ update/ src/ UpdateProject.php, line 80
Class
- UpdateProject
- Update project information.
Namespace
Drupal\updateCode
public function __construct(public string $name, public array $info, public ?array $includes = NULL, public ?string $projectType = NULL, public ?array $disabled = NULL, public string|int|null $existingMajor = NULL, public int|string|null $status = NULL, public array $extra = [], public ?string $title = NULL, public ?string $link = NULL, public ?string $reason = NULL, public string|bool|null $projectStatus = NULL, public string|\Stringable $existingVersion = '', public ?int $fetchStatus = NULL, public ?string $recommended = NULL, public array $also = [], public array $releases = [], public ?string $latestVersion = NULL, public ?string $devVersion = NULL, public ?string $installType = NULL, public ?string $latestDev = NULL, public int|string|null $datestamp = NULL, public ?array $securityUpdates = NULL) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.