public function DeleteForm::getCancelUrl in Linkit 8.4
Same name in this branch
- 8.4 src/Form/Attribute/DeleteForm.php \Drupal\linkit\Form\Attribute\DeleteForm::getCancelUrl()
- 8.4 src/Form/Matcher/DeleteForm.php \Drupal\linkit\Form\Matcher\DeleteForm::getCancelUrl()
Same name and namespace in other branches
- 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\MatcherCode
public function getCancelUrl() {
return Url::fromRoute('linkit.matchers', [
'linkit_profile' => $this->linkitProfile
->id(),
]);
}