You are here

public function RelationDeleteConfirm::getCancelUrl in Relation 8.2

Same name and namespace in other branches
  1. 8 src/Form/RelationDeleteConfirm.php \Drupal\relation\Form\RelationDeleteConfirm::getCancelUrl()

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/RelationDeleteConfirm.php, line 36

Class

RelationDeleteConfirm
Provides a form for relation deletion.

Namespace

Drupal\relation\Form

Code

public function getCancelUrl() {
  return new Url('entity.relation.canonical', array(
    'relation' => $this->entity
      ->id(),
  ));
}