function _drush_config_import_partial

8.0.x config.drush.inc _drush_config_import_partial(FileStorage $source)
7.x config.drush.inc _drush_config_import_partial(FileStorage $source)

Imports a partial set of configurations.

1 string reference to '_drush_config_import_partial'
drush_config_import in commands/core/config.drush.inc
Command callback. Import from specified config directory (defaults to sync).

File

commands/core/config.drush.inc, line 685
Provides Configuration Management commands.

Code

function _drush_config_import_partial(FileStorage $source) {
  /** @var \Drupal\Core\Config\StorageInterface $active_storage */
  $active_storage = Drupal::service('config.storage');
  foreach ($source->listAll() as $name) {
    $active_storage->write($name, $source->read($name));
  }
}