You are here

public static function Migration::runSwitch in CMS Content Sync 2.1.x

Same name and namespace in other branches
  1. 2.0.x src/Controller/Migration.php \Drupal\cms_content_sync\Controller\Migration::runSwitch()
2 calls to Migration::runSwitch()
Migration::runActiveStep in src/Controller/Migration.php
MigrationForm::submitForm in src/Form/MigrationForm.php
Form submission handler.

File

src/Controller/Migration.php, line 277

Class

Migration
Migration Embed provides methods and a UI to migrate from Content Sync v1 to Content Sync v2.

Namespace

Drupal\cms_content_sync\Controller

Code

public static function runSwitch() {
  self::useV2(true);
  foreach (Pool::getAll() as $pool) {
    self::setPoolV2Ready($pool, true);
  }
  \Drupal::messenger()
    ->addMessage(t('Successfully switched to always use the new Sync Core v2. Congratulations!'));
}