function StageBase::getPathsToExclude
Collects paths that Composer Stager should exclude.
Return value
\PhpTuf\ComposerStager\API\Path\Value\PathListInterface A list of paths that Composer Stager should exclude when creating the stage directory and applying staged changes to the active directory.
Throws
\Drupal\package_manager\Exception\StageException Thrown if an exception occurs while collecting paths to exclude.
See also
::create()
::apply()
2 calls to StageBase::getPathsToExclude()
- StageBase::apply in core/
modules/ package_manager/ src/ StageBase.php - Applies staged changes to the active directory.
- StageBase::create in core/
modules/ package_manager/ src/ StageBase.php - Copies the active code base into the stage directory.
File
-
core/
modules/ package_manager/ src/ StageBase.php, line 275
Class
- StageBase
- Creates and manages a stage directory in which to install or update code.
Namespace
Drupal\package_managerCode
protected function getPathsToExclude() : PathListInterface {
$event = new CollectPathsToExcludeEvent($this, $this->pathLocator, $this->pathFactory);
try {
return $this->eventDispatcher
->dispatch($event);
} catch (\Throwable $e) {
$this->rethrowAsStageException($e);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.