You are here

public function ClusterDeleteForm::getCancelUrl in Elasticsearch Connector 8

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

Class

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

Namespace

Drupal\elasticsearch_connector\Form

Code

public function getCancelUrl() {
  return new Url('elasticsearch_connector.clusters', array(
    'elasticsearch_cluster' => $this->entity
      ->id(),
  ));
}