You are here

public function ConfigTranslationDeleteForm::getCancelUrl in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/config_translation/src/Form/ConfigTranslationDeleteForm.php \Drupal\config_translation\Form\ConfigTranslationDeleteForm::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 ConfigTranslationDeleteForm::getCancelUrl()
ConfigTranslationDeleteForm::submitForm in core/modules/config_translation/src/Form/ConfigTranslationDeleteForm.php
Form submission handler.

File

core/modules/config_translation/src/Form/ConfigTranslationDeleteForm.php, line 102

Class

ConfigTranslationDeleteForm
Builds a form to delete configuration translation.

Namespace

Drupal\config_translation\Form

Code

public function getCancelUrl() {
  return new Url($this->mapper
    ->getOverviewRouteName(), $this->mapper
    ->getOverviewRouteParameters());
}