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

Breadcrumb

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

function Ruleset::getIncludePatterns

Gets the array of include patterns.

Optionally takes a listener to get include patterns specified for that sniff only.

Parameters

string $listener The listener to get patterns for. If NULL, all: patterns are returned.

Return value

array

1 call to Ruleset::getIncludePatterns()
Ruleset::populateTokenListeners in vendor/squizlabs/php_codesniffer/src/Ruleset.php
Populates the array of PHP_CodeSniffer_Sniff objects for this file.

File

vendor/squizlabs/php_codesniffer/src/Ruleset.php, line 1608

Class

Ruleset

Namespace

PHP_CodeSniffer

Code

public function getIncludePatterns($listener = null) {
    if ($listener === null) {
        return $this->includePatterns;
    }
    if (isset($this->includePatterns[$listener]) === true) {
        return $this->includePatterns[$listener];
    }
    return [];
}

API Navigation

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