You are here

public function DeleteJob::getCancelUrl in Advanced Queue 8

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

Return value

\Drupal\Core\Url A URL object.

Overrides ConfirmFormInterface::getCancelUrl

1 call to DeleteJob::getCancelUrl()
DeleteJob::submitForm in src/Form/DeleteJob.php
Form submission handler.

File

src/Form/DeleteJob.php, line 50

Class

DeleteJob
Provides a confirmation form for deleting a job.

Namespace

Drupal\advancedqueue\Form

Code

public function getCancelUrl() {
  return Url::fromRoute('view.advancedqueue_jobs.page_1', [
    'arg_0' => $this->queue
      ->id(),
  ]);
}