function CollectPathsToExcludeEvent::__construct
Constructs a CollectPathsToExcludeEvent object.
Parameters
\Drupal\package_manager\StageBase $stage: The stage which fired this event.
\Drupal\package_manager\PathLocator $pathLocator: The path locator service.
\PhpTuf\ComposerStager\API\Path\Factory\PathFactoryInterface $pathFactory: The path factory service.
\PhpTuf\ComposerStager\API\Path\Value\PathListInterface|null $pathList: (optional) The list of paths to exclude.
Overrides StageEvent::__construct
File
-
core/
modules/ package_manager/ src/ Event/ CollectPathsToExcludeEvent.php, line 33
Class
- CollectPathsToExcludeEvent
- Defines an event that collects paths to exclude.
Namespace
Drupal\package_manager\EventCode
public function __construct(StageBase $stage, PathLocator $pathLocator, PathFactoryInterface $pathFactory, ?PathListInterface $pathList = NULL) {
parent::__construct($stage);
$this->pathList ??= \Drupal::service(PathListFactoryInterface::class)->create();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.