You are here

function drush_config_split_export in Configuration Split 8

Command callback: Export config to specified directory (usually sync).

File

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

Code

function drush_config_split_export($split = NULL) {
  try {

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