You are here

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

Saves moderation state data to temporary migration tables.

@command wbm2cm:save @aliases wbm2cm-save

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

File

src/Commands/Wbm2cmCommands.php, line 84

Class

Wbm2cmCommands

Namespace

Drupal\wbm2cm\Commands

Code

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