You are here

public function AgreementDeleteForm::getCancelUrl in Agreement 8.2

Same name and namespace in other branches
  1. 3.0.x src/Entity/AgreementDeleteForm.php \Drupal\agreement\Entity\AgreementDeleteForm::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/Entity/AgreementDeleteForm.php, line 25

Class

AgreementDeleteForm
Agreement entity delete form.

Namespace

Drupal\agreement\Entity

Code

public function getCancelUrl() {
  return Url::fromRoute('entity.agreement.collection');
}