You are here

class PreStartEvent in Automatic Updates 8.2

Event fired before an update begins.

Hierarchy

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\Event
View 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

Namesort descending Modifiers Type Description Overrides
ExcludedPathsTrait::$excludedPaths protected property Paths to exclude from the update.
ExcludedPathsTrait::excludePath public function Adds an absolute path to exclude from the update operation.
ExcludedPathsTrait::getExcludedPaths public function Returns the paths to exclude from the update operation.
PackagesAwareTrait::$packageVersions protected property The desired package versions to update to, keyed by package name.
PackagesAwareTrait::getPackageVersions public function Returns the desired package versions to update to.
PreStartEvent::__construct public function Constructs a PreStartEvent object. Overrides UpdateEvent::__construct
UpdateEvent::$activeComposer protected property The Composer utility object for the active directory.
UpdateEvent::$results protected property The validation results.
UpdateEvent::addValidationResult public function Adds a validation result.
UpdateEvent::getActiveComposer public function Returns a Composer utility object for the active directory.
UpdateEvent::getResults public function Gets the validation results.