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

Breadcrumb

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

function GitExcluder::getSubscribedEvents

Overrides EventSubscriberInterface::getSubscribedEvents

File

core/modules/package_manager/src/PathExcluder/GitExcluder.php, line 30

Class

GitExcluder
Excludes .git directories from stage operations.

Namespace

Drupal\package_manager\PathExcluder

Code

public static function getSubscribedEvents() : array {
    return [
        CollectPathsToExcludeEvent::class => 'excludeGitDirectories',
    ];
}
RSS feed
Powered by Drupal