You are here

public function ScannerConfirmForm::getCancelUrl in Search and Replace Scanner 8

Returns the route to go to if the user cancels the action.

Return value

\Drupal\Core\Url A URL object.

Overrides ConfirmFormInterface::getCancelUrl

File

src/Form/ScannerConfirmForm.php, line 202

Class

ScannerConfirmForm
Form for configure messages.

Namespace

Drupal\scanner\Form

Code

public function getCancelUrl() {
  $this->tempStore
    ->get('scanner')
    ->set('scanner_op', '');
  return new Url('scanner.admin_content');
}