You are here

public function FeedDeleteForm::getCancelUrl in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/aggregator/src/Form/FeedDeleteForm.php \Drupal\aggregator\Form\FeedDeleteForm::getCancelUrl()

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

Return value

\Drupal\Core\Url A URL object.

Overrides ContentEntityDeleteForm::getCancelUrl

1 call to FeedDeleteForm::getCancelUrl()
FeedDeleteForm::getRedirectUrl in core/modules/aggregator/src/Form/FeedDeleteForm.php
Returns the URL where the user should be redirected after deletion.

File

core/modules/aggregator/src/Form/FeedDeleteForm.php, line 18

Class

FeedDeleteForm
Provides a form for deleting a feed.

Namespace

Drupal\aggregator\Form

Code

public function getCancelUrl() {
  return new Url('aggregator.admin_overview');
}