class PreApplyEvent
Event fired before staged changes are synced to the active directory.
Hierarchy
- class \Drupal\package_manager\Event\StageEvent extends \Symfony\Contracts\EventDispatcher\Event
- class \Drupal\package_manager\Event\PreOperationStageEvent extends \Drupal\package_manager\Event\StageEvent
- class \Drupal\package_manager\Event\PreApplyEvent extends \Drupal\package_manager\Event\PreOperationStageEvent
- class \Drupal\package_manager\Event\PreOperationStageEvent extends \Drupal\package_manager\Event\StageEvent
Expanded class hierarchy of PreApplyEvent
39 files declare their use of PreApplyEvent
- AllowedScaffoldPackagesValidator.php in core/
modules/ package_manager/ src/ Validator/ AllowedScaffoldPackagesValidator.php - AllowedScaffoldPackagesValidatorTest.php in core/
modules/ package_manager/ tests/ src/ Kernel/ AllowedScaffoldPackagesValidatorTest.php - 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
File
-
core/
modules/ package_manager/ src/ Event/ PreApplyEvent.php, line 14
Namespace
Drupal\package_manager\EventView source
final class PreApplyEvent extends PreOperationStageEvent {
/**
* The list of paths to ignore in the active and stage directories.
*
* @var \Drupal\package_manager\ImmutablePathList
*/
public readonly ImmutablePathList $excludedPaths;
/**
* Constructs a PreApplyEvent object.
*
* @param \Drupal\package_manager\StageBase $stage
* The stage which fired this event.
* @param \PhpTuf\ComposerStager\API\Path\Value\PathListInterface $excluded_paths
* The list of paths to exclude. These will not be copied from the stage
* directory to the active directory, nor be deleted from the active
* directory if they exist, when the stage directory is copied back into
* the active directory.
*/
public function __construct(StageBase $stage, PathListInterface $excluded_paths) {
parent::__construct($stage);
$this->excludedPaths = new ImmutablePathList($excluded_paths);
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
PreApplyEvent::$excludedPaths | public | property | The list of paths to ignore in the active and stage directories. | ||
PreApplyEvent::__construct | public | function | Constructs a PreApplyEvent object. | Overrides StageEvent::__construct | |
PreOperationStageEvent::$results | protected | property | The validation results. | ||
PreOperationStageEvent::addError | public | function | Convenience method to flag a validation error. | ||
PreOperationStageEvent::addErrorFromThrowable | public | function | Convenience method, adds an error validation result from a throwable. | ||
PreOperationStageEvent::addResult | public | function | Adds a validation result to the event. | 1 | |
PreOperationStageEvent::getResults | public | function | Gets the validation results. | ||
PreOperationStageEvent::stopPropagation | public | function |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.