You are here

public function RelationTypeDeleteConfirm::getCancelUrl in Relation 8

Same name and namespace in other branches
  1. 8.2 src/Form/RelationTypeDeleteConfirm.php \Drupal\relation\Form\RelationTypeDeleteConfirm::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/RelationTypeDeleteConfirm.php, line 57
Contains \Drupal\relation\Form\RelationTypeDeleteConfirm.

Class

RelationTypeDeleteConfirm
Provides a form for relation type deletion.

Namespace

Drupal\relation\Form

Code

public function getCancelUrl() {
  return new Url('entity.relation.collection');
}