You are here

public function Wbm2cmCommands::restore in Workbench Moderation to Content Moderation 8.2

Restores moderation state data from temporary migration tables.

@command wbm2cm:restore @aliases wbm2cm-restore

1 call to Wbm2cmCommands::restore()
Wbm2cmCommands::migrate in src/Commands/Wbm2cmCommands.php
Migrates from Workbench Moderation to Content Moderation.

File

src/Commands/Wbm2cmCommands.php, line 120

Class

Wbm2cmCommands

Namespace

Drupal\wbm2cm\Commands

Code

public function restore() {
  $out = $this
    ->output();
  $out
    ->writeln('Restoring moderation states from temporary tables...');
  $messages = $this->controller
    ->executeStepWithMessages('restore');
  array_walk($messages, [
    $out,
    'writeln',
  ]);
}