You are here

public function ConfigUpdateUiCommands::revertMultiple in Configuration Update Manager 8

Reverts multiple config items to extension provided version.

Reverts a set of config items to the versions provided by installed modules, themes, or install profiles. A set is all differing items from one extension, or one type of configuration.

@usage drush config-revert-multiple type action Revert all differing config items of type action.

@command config:revert-multiple @aliases cfrm,config-revert-multiple

Parameters

string $type: Type of set to revert: "module" for all items from a module, "theme" for all items from a theme, "profile" for all items from the install profile, or "type" for all items of one config entity type. See config-different-report to list config items that are different.

string $name: The machine name of the module, theme, etc. to revert items of. All items in the corresponding config-different-report will be reverted.

File

config_update_ui/src/Commands/ConfigUpdateUiCommands.php, line 243

Class

ConfigUpdateUiCommands
A set of Drush commands for Config Update Manager.

Namespace

Drupal\config_update_ui\Commands

Code

public function revertMultiple($type, $name) {
  return $this->cliService
    ->revertMultiple($type, $name);
}