PackagesAwareTrait.php in Automatic Updates 8.2
Namespace
Drupal\automatic_updates\EventFile
src/Event/PackagesAwareTrait.phpView source
<?php
namespace Drupal\automatic_updates\Event;
/**
* Common functionality for events which can carry desired package versions.
*/
trait PackagesAwareTrait {
/**
* The desired package versions to update to, keyed by package name.
*
* @var string[]
*/
protected $packageVersions;
/**
* Returns the desired package versions to update to.
*
* @return string[]
* The desired package versions to update to, keyed by package name.
*/
public function getPackageVersions() : array {
return $this->packageVersions;
}
}
Traits
Name![]() |
Description |
---|---|
PackagesAwareTrait | Common functionality for events which can carry desired package versions. |