You are here

public function TokenCustomDeleteForm::getCancelUrl in Custom Tokens 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/TokenCustomDeleteForm.php, line 26

Class

TokenCustomDeleteForm
Provides a confirmation form for deleting a custom token entity.

Namespace

Drupal\token_custom\Form

Code

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