You are here

protected function ConfigRewriter::fileScanDirectory in Configuration Rewrite 8

Same name and namespace in other branches
  1. 8.2 src/ConfigRewriter.php \Drupal\config_rewrite\ConfigRewriter::fileScanDirectory()

Wraps fileSystem->scanDirectory().

Parameters

$dir: The base directory or URI to scan, without trailing slash.

$mask: The preg_match() regular expression for files to be included.

$options: An associative array of additional options.

Return value

array An associative array (keyed on the chosen key) of objects with 'uri', 'filename', and 'name' properties corresponding to the matched files.

1 call to ConfigRewriter::fileScanDirectory()
ConfigRewriter::rewriteDirectoryConfig in src/ConfigRewriter.php
Finds files in a given directory and uses them to rewrite active config.

File

src/ConfigRewriter.php, line 220

Class

ConfigRewriter
Provides methods to rewrite configuration.

Namespace

Drupal\config_rewrite

Code

protected function fileScanDirectory($dir, $mask, $options = array()) {
  return $this->fileSystem
    ->scanDirectory($dir, $mask, $options);
}