protected function ConfigRewriter::fileScanDirectory in Configuration Rewrite 8.2
Same name and namespace in other branches
- 8 src/ConfigRewriter.php \Drupal\config_rewrite\ConfigRewriter::fileScanDirectory()
Wraps file_scan_directory().
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 184
Class
- ConfigRewriter
- Provides methods to rewrite configuration.
Namespace
Drupal\config_rewriteCode
protected function fileScanDirectory($dir, $mask, $options = array()) {
return $this->fileSystem
->scanDirectory($dir, $mask, $options);
}