You are here

public function IndexDeleteForm::getCancelUrl in Elasticsearch Connector 8.2

Same name and namespace in other branches
  1. 8.7 src/Form/IndexDeleteForm.php \Drupal\elasticsearch_connector\Form\IndexDeleteForm::getCancelUrl()
  2. 8 src/Form/IndexDeleteForm.php \Drupal\elasticsearch_connector\Form\IndexDeleteForm::getCancelUrl()
  3. 8.5 src/Form/IndexDeleteForm.php \Drupal\elasticsearch_connector\Form\IndexDeleteForm::getCancelUrl()
  4. 8.6 src/Form/IndexDeleteForm.php \Drupal\elasticsearch_connector\Form\IndexDeleteForm::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/Form/IndexDeleteForm.php, line 89
Contains \Drupal\elasticsearch_connector\Form\IndexDeleteForm.

Class

IndexDeleteForm
Defines a confirmation form for deletion of a custom menu.

Namespace

Drupal\elasticsearch_connector\Form

Code

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