RecursiveExtensionFilterIterator::__construct

public RecursiveExtensionFilterIterator::__construct(\RecursiveIterator $iterator, array $blacklist = [])

Construct a RecursiveExtensionFilterIterator.

Parameters

\RecursiveIterator $iterator: The iterator to filter.

array $blacklist: (optional) Add to the blacklist of directories that should be filtered out during the iteration.

File

core/lib/Drupal/Core/Extension/Discovery/RecursiveExtensionFilterIterator.php, line 93

Class

RecursiveExtensionFilterIterator
Filters a RecursiveDirectoryIterator to discover extensions.

Namespace

Drupal\Core\Extension\Discovery

Code

public function __construct(\RecursiveIterator $iterator, array $blacklist = []) {
  parent::__construct($iterator);
  $this->blacklist = array_merge($this->blacklist, $blacklist);
}
doc_Drupal
2016-10-29 09:36:48
Comments
Leave a Comment

Please login to continue.