You are here

class PdbRecursiveExtensionFilterIterator in Decoupled Blocks 8

Extends to provide custom whitelist and blacklist.

Hierarchy

Expanded class hierarchy of PdbRecursiveExtensionFilterIterator

1 file declares its use of PdbRecursiveExtensionFilterIterator
ComponentDiscovery.php in src/ComponentDiscovery.php

File

src/Discovery/PdbRecursiveExtensionFilterIterator.php, line 12

Namespace

Drupal\pdb\Discovery
View source
class PdbRecursiveExtensionFilterIterator extends RecursiveExtensionFilterIterator {

  /**
   * {@inheritdoc}
   */
  protected $allowedExtensionTypes = [
    'components',
    'src',
  ];

  /**
   * {@inheritdoc}
   */
  protected $skippedFolders = [
    // Object-oriented code subdirectories.
    'lib',
    'vendor',
    // Front-end.
    'assets',
    'css',
    'files',
    'images',
    'js',
    'misc',
    'templates',
    // Legacy subdirectories.
    'includes',
    // Test subdirectories.
    'fixtures',
    // @todo ./tests/Drupal should be ./tests/src/Drupal
    'Drupal',
  ];

}

Members

Namesort descending Modifiers Type Description Overrides
PdbRecursiveExtensionFilterIterator::$allowedExtensionTypes protected property
PdbRecursiveExtensionFilterIterator::$skippedFolders protected property
RecursiveExtensionFilterIterator::$acceptTests protected property Whether to include test directories when recursing.
RecursiveExtensionFilterIterator::$blacklist protected property List of directory names to skip when recursing.
RecursiveExtensionFilterIterator::$whitelist protected property List of base extension type directory names to scan.
RecursiveExtensionFilterIterator::accept public function
RecursiveExtensionFilterIterator::acceptTests public function Controls whether test directories will be scanned.
RecursiveExtensionFilterIterator::getChildren public function
RecursiveExtensionFilterIterator::__construct public function Construct a RecursiveExtensionFilterIterator.