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()

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/Attribute/DeleteForm.php, line 45
Contains \Drupal\linkit\Form\Attribute\DeleteForm.

Class

DeleteForm
Provides a form to remove an attribute from a profile.

Namespace

Drupal\linkit\Form\Attribute

Code

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