public function UpdateMetadata::__construct in Automatic Updates 8
UpdateMetadata constructor.
Parameters
string $project_name: The project name.
string $project_type: The project type.
string $from_version: The current project version.
string $to_version: The desired next project version.
File
- src/
UpdateMetadata.php, line 50
Class
- UpdateMetadata
- Transfer object to encapsulate the details for an update.
Namespace
Drupal\automatic_updatesCode
public function __construct($project_name, $project_type, $from_version, $to_version) {
$this->projectName = $project_name;
$this->projectType = $project_type;
$this->fromVersion = $from_version;
$this->toVersion = $to_version;
}