You are here

public function DeleteForm::getCancelUrl in Linkit 8.5

Same name and namespace in other branches
  1. 8.4 src/Form/Matcher/DeleteForm.php \Drupal\linkit\Form\Matcher\DeleteForm::getCancelUrl()

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

Return value

\Drupal\Core\Url A URL object.

Overrides ConfirmFormInterface::getCancelUrl

File

src/Form/Matcher/DeleteForm.php, line 40

Class

DeleteForm
Provides a form to remove a matcher from a profile.

Namespace

Drupal\linkit\Form\Matcher

Code

public function getCancelUrl() {
  return Url::fromRoute('linkit.matchers', [
    'linkit_profile' => $this->linkitProfile
      ->id(),
  ]);
}