You are here

public function DomainLangNegotiationBrowserDeleteForm::getCancelUrl in Domain Lang 8

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

Return value

\Drupal\Core\Url A URL object.

Overrides NegotiationBrowserDeleteForm::getCancelUrl

File

src/Form/DomainLangNegotiationBrowserDeleteForm.php, line 60

Class

DomainLangNegotiationBrowserDeleteForm
Builds a confirmation form to delete a browser language negotiation mapping.

Namespace

Drupal\domain_lang\Form

Code

public function getCancelUrl() {
  return new Url('domain_lang.negotiation_browser', [
    'domain' => $this->domainLangHandler
      ->getDomainFromUrl()
      ->id(),
  ]);
}