You are here

function _drush_config_import_get_options in Config Importer and Tools 8

Same name and namespace in other branches
  1. 8.2 config_import.drush.inc \_drush_config_import_get_options()
  2. 8.0 config_import.drush.inc \_drush_config_import_get_options()

Get values for specified options.

@internal

Return value

string[] An associative array where keys - are option names and values - values.

3 calls to _drush_config_import_get_options()
drush_config_import_export in ./config_import.drush.inc
Implements drush_COMMAND().
drush_config_import_import in ./config_import.drush.inc
Implements drush_COMMAND().
drush_config_import_names in ./config_import.drush.inc
Implements drush_COMMAND().

File

./config_import.drush.inc, line 282
Drush integration.

Code

function _drush_config_import_get_options() {
  $command = drush_get_command();
  $options = [];
  foreach ($command['options'] as $option => $specification) {
    $options[$option] = drush_get_option($option);
  }

  // @see Command::processOptions()
  return call_user_func([
    $command['class'],
    'processOptions',
  ], $options);
}