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

Breadcrumb

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

function Finder::ignoreVCSIgnored

Forces Finder to obey .gitignore and ignore files based on rules listed there.

This option is disabled by default.

Return value

$this

File

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

Class

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

Namespace

Symfony\Component\Finder

Code

public function ignoreVCSIgnored(bool $ignoreVCSIgnored) : static {
    if ($ignoreVCSIgnored) {
        $this->ignore |= static::IGNORE_VCS_IGNORED_FILES;
    }
    else {
        $this->ignore &= ~static::IGNORE_VCS_IGNORED_FILES;
    }
    return $this;
}

API Navigation

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