class PreStartEvent in Automatic Updates 8.2
Event fired before an update begins.
Hierarchy
- class \Drupal\automatic_updates\Event\UpdateEvent extends \Drupal\Component\EventDispatcher\Event
- class \Drupal\automatic_updates\Event\PreStartEvent uses ExcludedPathsTrait, PackagesAwareTrait
Expanded class hierarchy of PreStartEvent
1 file declares its use of PreStartEvent
- Updater.php in src/
Updater.php
File
- src/
Event/ PreStartEvent.php, line 10
Namespace
Drupal\automatic_updates\EventView source
class PreStartEvent extends UpdateEvent {
use ExcludedPathsTrait;
use PackagesAwareTrait;
/**
* Constructs a PreStartEvent 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 |
---|---|---|---|---|
ExcludedPathsTrait:: |
protected | property | Paths to exclude from the update. | |
ExcludedPathsTrait:: |
public | function | Adds an absolute path to exclude from the update operation. | |
ExcludedPathsTrait:: |
public | function | Returns the paths to exclude from the update operation. | |
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. | |
PreStartEvent:: |
public | function |
Constructs a PreStartEvent 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. |