function PreCreateEvent::__construct

Constructs a PreCreateEvent 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 into the stage directory when it is created.

Overrides StageEvent::__construct

File

core/modules/package_manager/src/Event/PreCreateEvent.php, line 32

Class

PreCreateEvent
Event fired before a stage directory is created.

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.