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

Breadcrumb

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

function Finder::addVCSPattern

Adds VCS patterns.

Parameters

string|string[] $pattern VCS patterns to ignore:

See also

ignoreVCS()

File

vendor/symfony/finder/Finder.php, line 401

Class

Finder
Finder allows to build rules to find files and directories.

Namespace

Symfony\Component\Finder

Code

public static function addVCSPattern(string|array $pattern) : void {
    foreach ((array) $pattern as $p) {
        self::$vcsPatterns[] = $p;
    }
    self::$vcsPatterns = array_unique(self::$vcsPatterns);
}

API Navigation

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