You are here

function drush_config_split_import in Configuration Split 8

Command callback. Import from specified config directory (defaults to sync).

File

./config_split.drush.inc, line 59
Drush integration for the config_split module.

Code

function drush_config_split_import($split = NULL) {
  try {

    // Make the magic happen.
    \Drupal::service('config_split.cli')
      ->ioImport($split, new ConfigSplitDrush8Io(), 'dt');
  } catch (Exception $e) {
    return drush_set_error('DRUSH_CONFIG_ERROR', $e
      ->getMessage());
  }
}