public function RelationDeleteConfirm::getCancelUrl in Relation 8
Same name and namespace in other branches
- 8.2 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 40 - Contains \Drupal\relation\Form\RelationDeleteConfirm.
Class
- RelationDeleteConfirm
- Provides a form for relation deletion.
Namespace
Drupal\relation\FormCode
public function getCancelUrl() {
return new Url('entity.relation.canonical', array(
'relation' => $this->entity
->id(),
));
}