You are here

public function ConditionalFieldDeleteFormTab::getCancelUrl in Conditional Fields 8

Same name and namespace in other branches
  1. 4.x src/Form/ConditionalFieldDeleteFormTab.php \Drupal\conditional_fields\Form\ConditionalFieldDeleteFormTab::getCancelUrl()

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

Return value

\Drupal\Core\Url A URL object.

Overrides ConditionalFieldDeleteForm::getCancelUrl

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

File

src/Form/ConditionalFieldDeleteFormTab.php, line 21

Class

ConditionalFieldDeleteFormTab
Class ConditionalFieldDeleteFormTab.

Namespace

Drupal\conditional_fields\Form

Code

public function getCancelUrl() {
  return Url::fromRoute('conditional_fields.tab' . "." . $this->entity_type, [
    "{$this->entity_type}_type" => $this->bundle,
  ]);
}