function PreApplyEvent::__construct

Constructs a PreApplyEvent object.

Parameters

\Drupal\package_manager\StageBase $stage: The stage which fired this event.

\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.

Overrides StageEvent::__construct

File

core/modules/package_manager/src/Event/PreApplyEvent.php, line 34

Class

PreApplyEvent
Event fired before staged changes are synced to the active directory.

Namespace

Drupal\package_manager\Event

Code

public function __construct(StageBase $stage, PathListInterface $excluded_paths) {
    parent::__construct($stage);
    $this->excludedPaths = new ImmutablePathList($excluded_paths);
}

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