You are here

public function Config::reExportModule in Helper 8

Import a module's directory containing configuration files.

Parameters

string $module: The module name.

string $directory: The directory name inside the module's config directory. Defaults to 'install'.

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.

File

src/Config.php, line 229

Class

Config
Provides helper for working with configuration.

Namespace

Drupal\helper

Code

public function reExportModule($module, $directory = 'install', array $options = []) {
  $this
    ->reExportDirectory(drupal_get_path('module', $module) . '/config/' . $directory, $options);
}