You are here

public function ConditionalFieldDeleteForm::getCancelUrl in Conditional Fields 4.x

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

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

Return value

\Drupal\Core\Url A URL object.

Overrides ConfirmFormInterface::getCancelUrl

1 call to ConditionalFieldDeleteForm::getCancelUrl()
ConditionalFieldDeleteForm::submitForm in src/Form/ConditionalFieldDeleteForm.php
Form submission handler.
1 method overrides ConditionalFieldDeleteForm::getCancelUrl()
ConditionalFieldDeleteFormTab::getCancelUrl in src/Form/ConditionalFieldDeleteFormTab.php
Returns the route to go to if the user cancels the action.

File

src/Form/ConditionalFieldDeleteForm.php, line 56

Class

ConditionalFieldDeleteForm
A form to delete a conditional field.

Namespace

Drupal\conditional_fields\Form

Code

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