Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TestSiteExcluder.php

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',
    ]);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal