You are here

function drush_config_devel_import_config in Configuration development 8

Imports a list of configuration entities

Parameters

array $config_list: An array of configuration entities.

string $type: The type of extension we're exporting, one of module or theme.

string $extension: The module, theme or install profile we're exporting.

string $directory: The directory we're exporting to.

1 call to drush_config_devel_import_config()
drush_config_devel_import in drush/config_devel.drush.inc
Drush command callback.

File

drush/config_devel.drush.inc, line 194
Configuration development module drush integration.

Code

function drush_config_devel_import_config($config_list, $type, $extension, $directory) {
  $config_path = drupal_get_path($type, $extension) . "/{$directory}";
  foreach ($config_list as $name) {
    $file_name = $config_path . '/' . $name . '.yml';
    drush_config_devel_import_one($file_name);
  }
}