function 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());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.