You are here

public function AutocompletionConfigurationDeleteForm::getCancelUrl in Search Autocomplete 8

Same name and namespace in other branches
  1. 2.x src/Form/AutocompletionConfigurationDeleteForm.php \Drupal\search_autocomplete\Form\AutocompletionConfigurationDeleteForm::getCancelUrl()

Gets the cancel URL.

Provides the URL to go to if the user cancels the action. For entity delete forms, this is typically the route that points at the list controller.

Return value

\Drupal\Core\Url The URL to go to if the user cancels the deletion.

Overrides ConfirmFormInterface::getCancelUrl

1 call to AutocompletionConfigurationDeleteForm::getCancelUrl()
AutocompletionConfigurationDeleteForm::submitForm in src/Form/AutocompletionConfigurationDeleteForm.php
The submit handler for the confirm form.

File

src/Form/AutocompletionConfigurationDeleteForm.php, line 88

Class

AutocompletionConfigurationDeleteForm
Class AutocompletionConfigurationDeleteForm.

Namespace

Drupal\search_autocomplete\Form

Code

public function getCancelUrl() {
  return new Url('autocompletion_configuration.list');
}