public function Config::reExportDirectory in Helper 8
Re-export a directory containing configuration files.
Parameters
string $directory: The path to the directory.
array $options: An array of options to pass to file_scan_directory().
Throws
\RuntimeException If the directory is not writeable or if the configuration does not exist.
1 call to Config::reExportDirectory()
- Config::reExportModule in src/
Config.php - Import a module's directory containing configuration files.
File
- src/
Config.php, line 208
Class
- Config
- Provides helper for working with configuration.
Namespace
Drupal\helperCode
public function reExportDirectory($directory, array $options = []) {
$files = $this->fileSystem
->scanDirectory($directory, '/^.*\\.yml$/', $options);
foreach ($files as $file) {
$this
->exportFile(basename($file->filename, '.yml'), dirname($file->uri));
}
}