You are here

public function ConfigUpdateUiCliService::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.

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/ConfigUpdateUiCliService.php, line 304

Class

ConfigUpdateUiCliService
Handles all the logic for commands for various versions of Drush.

Namespace

Drupal\config_update_ui

Code

public function revertMultiple($type, $name) {
  $different = $this
    ->getDifferentItems($type, $name);
  foreach ($different as $name) {
    $this
      ->revert($name);
  }
}