class PreRequireEvent

Event fired before packages are updated to the stage directory.

Hierarchy

Expanded class hierarchy of PreRequireEvent

17 files declare their use of PreRequireEvent
BaseRequirementsFulfilledValidator.php in core/modules/package_manager/src/Validator/BaseRequirementsFulfilledValidator.php
BaseRequirementsFulfilledValidatorTest.php in core/modules/package_manager/tests/src/Kernel/BaseRequirementsFulfilledValidatorTest.php
BaseRequirementValidatorTrait.php in core/modules/package_manager/src/Validator/BaseRequirementValidatorTrait.php
ComposerMinimumStabilityValidator.php in core/modules/package_manager/src/Validator/ComposerMinimumStabilityValidator.php
DirectWriteSubscriber.php in core/modules/package_manager/src/EventSubscriber/DirectWriteSubscriber.php

... See full list

File

core/modules/package_manager/src/Event/PreRequireEvent.php, line 10

Namespace

Drupal\package_manager\Event
View source
final class PreRequireEvent extends SandboxValidationEvent {
  use EventWithPackageListTrait;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
EventWithPackageListTrait::$devPackages private property The dev packages to be required, in the form 'vendor/name:constraint'.
EventWithPackageListTrait::$runtimePackages private property The runtime packages, in the form 'vendor/name:constraint'.
EventWithPackageListTrait::getDevPackages public function Gets the dev packages.
EventWithPackageListTrait::getKeyedPackages private function Gets packages as a keyed array.
EventWithPackageListTrait::getRuntimePackages public function Gets the runtime (i.e., non-dev) packages.
EventWithPackageListTrait::__construct public function Constructs the object.
SandboxValidationEvent::$results protected property The validation results.
SandboxValidationEvent::addError public function Convenience method to flag a validation error.
SandboxValidationEvent::addErrorFromThrowable public function Convenience method, adds an error validation result from a throwable.
SandboxValidationEvent::addResult public function Adds a validation result to the event. 1
SandboxValidationEvent::getResults public function Gets the validation results.
SandboxValidationEvent::stopPropagation public function

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.