function MigrateUpgradeFormBase::restartUpgradeForm

Same name in other branches
  1. 9 core/modules/migrate_drupal_ui/src/Form/MigrateUpgradeFormBase.php \Drupal\migrate_drupal_ui\Form\MigrateUpgradeFormBase::restartUpgradeForm()
  2. 8.9.x core/modules/migrate_drupal_ui/src/Form/MigrateUpgradeFormBase.php \Drupal\migrate_drupal_ui\Form\MigrateUpgradeFormBase::restartUpgradeForm()
  3. 10 core/modules/migrate_drupal_ui/src/Form/MigrateUpgradeFormBase.php \Drupal\migrate_drupal_ui\Form\MigrateUpgradeFormBase::restartUpgradeForm()

Helper to redirect to the Overview form.

Return value

\Symfony\Component\HttpFoundation\RedirectResponse A redirect response object that may be returned by the controller.

Throws

\Drupal\Core\TempStore\TempStoreException Thrown when a lock for the backend storage could not be acquired.

4 calls to MigrateUpgradeFormBase::restartUpgradeForm()
CredentialForm::buildForm in core/modules/migrate_drupal_ui/src/Form/CredentialForm.php
Form constructor.
IdConflictForm::buildForm in core/modules/migrate_drupal_ui/src/Form/IdConflictForm.php
Form constructor.
IncrementalForm::buildForm in core/modules/migrate_drupal_ui/src/Form/IncrementalForm.php
Form constructor.
ReviewForm::buildForm in core/modules/migrate_drupal_ui/src/Form/ReviewForm.php
Form constructor.

File

core/modules/migrate_drupal_ui/src/Form/MigrateUpgradeFormBase.php, line 92

Class

MigrateUpgradeFormBase
Form base for the Migrate Upgrade UI.

Namespace

Drupal\migrate_drupal_ui\Form

Code

protected function restartUpgradeForm() {
    $this->store
        ->set('step', 'overview');
    return $this->redirect('migrate_drupal_ui.upgrade');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.