You are here

public function EntitySubqueueDeleteForm::getCancelUrl in Entityqueue 8

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

Return value

\Drupal\Core\Url A URL object.

Overrides ContentEntityDeleteForm::getCancelUrl

1 call to EntitySubqueueDeleteForm::getCancelUrl()
EntitySubqueueDeleteForm::getRedirectUrl in src/Form/EntitySubqueueDeleteForm.php
Returns the URL where the user should be redirected after deletion.

File

src/Form/EntitySubqueueDeleteForm.php, line 22

Class

EntitySubqueueDeleteForm
Provides the entity subqueue delete confirmation form.

Namespace

Drupal\entityqueue\Form

Code

public function getCancelUrl() {

  // Point to the parent queue entity.
  return $this->entity
    ->getQueue()
    ->toUrl('subqueue-list');
}