You are here

public function DeleteForm::getCancelUrl in Linkit 8.4

Same name in this branch
  1. 8.4 src/Form/Attribute/DeleteForm.php \Drupal\linkit\Form\Attribute\DeleteForm::getCancelUrl()
  2. 8.4 src/Form/Matcher/DeleteForm.php \Drupal\linkit\Form\Matcher\DeleteForm::getCancelUrl()
Same name and namespace in other branches
  1. 8.5 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 45
Contains \Drupal\linkit\Form\Matcher\DeleteForm.

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