function TestSiteExcluder::excludeTestSites

Excludes sites/simpletest from stage operations.

Parameters

\Drupal\package_manager\Event\CollectPathsToExcludeEvent $event: The event object.

File

core/modules/package_manager/src/PathExcluder/TestSiteExcluder.php, line 35

Class

TestSiteExcluder
Excludes 'sites/simpletest' from stage operations.

Namespace

Drupal\package_manager\PathExcluder

Code

public function excludeTestSites(CollectPathsToExcludeEvent $event) : void {
    // Always exclude automated test directories. If they exist, they will be in
    // the web root.
    $event->addPathsRelativeToWebRoot([
        'sites/simpletest',
    ]);
}

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