function NodeModulesExcluder::getSubscribedEvents

File

core/modules/package_manager/src/PathExcluder/NodeModulesExcluder.php, line 33

Class

NodeModulesExcluder
Excludes node_modules files from stage directories.

Namespace

Drupal\package_manager\PathExcluder

Code

public static function getSubscribedEvents() : array {
    return [
        CollectPathsToExcludeEvent::class => 'excludeNodeModulesFiles',
    ];
}

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