You are here

public function DeleteMultiple::getCancelUrl in Entity API 8.0

Returns the route to go to if the user cancels the action.

Return value

\Drupal\Core\Url A URL object.

Overrides ConfirmFormInterface::getCancelUrl

1 call to DeleteMultiple::getCancelUrl()
DeleteMultiple::submitForm in src/Form/DeleteMultiple.php
Form submission handler.

File

src/Form/DeleteMultiple.php, line 103
Contains \Drupal\entity\Form\DeleteMultiple.

Class

DeleteMultiple
Provides an entities deletion confirmation form.

Namespace

Drupal\entity\Form

Code

public function getCancelUrl() {
  return new Url('entity.' . $this->entityTypeId . '.collection');
}