You are here

public function ReleaseJob::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 ReleaseJob::getCancelUrl()
ReleaseJob::submitForm in src/Form/ReleaseJob.php
Form submission handler.

File

src/Form/ReleaseJob.php, line 50

Class

ReleaseJob
Provides a confirmation form for releasing a job.

Namespace

Drupal\advancedqueue\Form

Code

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