function SandboxManagerBase::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\SandboxException Thrown if an exception occurs while collecting paths to exclude.

See also

::create()

::apply()

2 calls to SandboxManagerBase::getPathsToExclude()
SandboxManagerBase::apply in core/modules/package_manager/src/SandboxManagerBase.php
Applies staged changes to the active directory.
SandboxManagerBase::create in core/modules/package_manager/src/SandboxManagerBase.php
Copies the active code base into the stage directory.

File

core/modules/package_manager/src/SandboxManagerBase.php, line 275

Class

SandboxManagerBase
Creates and manages a stage directory in which to install or update code.

Namespace

Drupal\package_manager

Code

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.