You are here

public function MigrationDeleteForm::getCancelUrl in Migrate Tools 8

Same name and namespace in other branches
  1. 8.5 src/Form/MigrationDeleteForm.php \Drupal\migrate_tools\Form\MigrationDeleteForm::getCancelUrl()
  2. 8.2 src/Form/MigrationDeleteForm.php \Drupal\migrate_tools\Form\MigrationDeleteForm::getCancelUrl()
  3. 8.3 src/Form/MigrationDeleteForm.php \Drupal\migrate_tools\Form\MigrationDeleteForm::getCancelUrl()
  4. 8.4 src/Form/MigrationDeleteForm.php \Drupal\migrate_tools\Form\MigrationDeleteForm::getCancelUrl()

Gets the cancel URL.

Return value

\Drupal\Core\Url The URL to go to if the user cancels the deletion.

Overrides ConfirmFormInterface::getCancelUrl

1 call to MigrationDeleteForm::getCancelUrl()
MigrationDeleteForm::submitForm in src/Form/MigrationDeleteForm.php
The submit handler for the confirm form.

File

src/Form/MigrationDeleteForm.php, line 51
Contains Drupal\migrate_tools\Form\MigrationDeleteForm.

Class

MigrationDeleteForm
Class MigrationDeleteForm.

Namespace

Drupal\migrate_tools\Form

Code

public function getCancelUrl() {
  return new Url('entity.migration.list', array(
    'migration_group' => $this->entity
      ->get('migration_group'),
  ));
}