You are here

public function EntityLegalDocumentDeleteForm::getCancelUrl in Entity Legal 8

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/EntityLegalDocumentDeleteForm.php, line 30
Contains \Drupal\entity_legal\Form\EntityLegalDocumentDeleteForm.

Class

EntityLegalDocumentDeleteForm
Form builder for legal document deletion.

Namespace

Drupal\entity_legal\Form

Code

public function getCancelUrl() {
  return new Url('entity_legal.list_documents');
}