class ReadinessCheckEvent in Automatic Updates 8.2
Event fired when checking if the site could perform an update.
Hierarchy
- class \Drupal\automatic_updates\Event\UpdateEvent extends \Drupal\Component\EventDispatcher\Event
- class \Drupal\automatic_updates\Event\ReadinessCheckEvent uses PackagesAwareTrait
Expanded class hierarchy of ReadinessCheckEvent
3 files declare their use of ReadinessCheckEvent
- CoreComposerValidator.php in src/
Validator/ CoreComposerValidator.php - ReadinessValidationManager.php in src/
Validation/ ReadinessValidationManager.php - UpdateVersionValidator.php in src/
Validator/ UpdateVersionValidator.php
File
- src/
Event/ ReadinessCheckEvent.php, line 10
Namespace
Drupal\automatic_updates\EventView source
class ReadinessCheckEvent extends UpdateEvent {
use PackagesAwareTrait;
/**
* Constructs a ReadinessCheckEvent object.
*
* @param \Drupal\package_manager\ComposerUtility $active_composer
* A Composer utility object for the active directory.
* @param string[] $package_versions
* (optional) The desired package versions to update to, keyed by package
* name.
*/
public function __construct(ComposerUtility $active_composer, array $package_versions = []) {
parent::__construct($active_composer);
$this->packageVersions = $package_versions;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PackagesAwareTrait:: |
protected | property | The desired package versions to update to, keyed by package name. | |
PackagesAwareTrait:: |
public | function | Returns the desired package versions to update to. | |
ReadinessCheckEvent:: |
public | function |
Constructs a ReadinessCheckEvent object. Overrides UpdateEvent:: |
|
UpdateEvent:: |
protected | property | The Composer utility object for the active directory. | |
UpdateEvent:: |
protected | property | The validation results. | |
UpdateEvent:: |
public | function | Adds a validation result. | |
UpdateEvent:: |
public | function | Returns a Composer utility object for the active directory. | |
UpdateEvent:: |
public | function | Gets the validation results. |