You are here

public function ContentConfirmForm::getCancelUrl in GatherContent 8.4

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

Return value

\Drupal\Core\Url A URL object.

Overrides ConfirmFormInterface::getCancelUrl

1 method overrides ContentConfirmForm::getCancelUrl()
ContentUpdateConfirmForm::getCancelUrl in gathercontent_ui/src/Form/ContentUpdateConfirmForm.php
Returns the route to go to if the user cancels the action.

File

gathercontent_ui/src/Form/ContentConfirmForm.php, line 96

Class

ContentConfirmForm
Provides a node deletion confirmation form.

Namespace

Drupal\gathercontent_ui\Form

Code

public function getCancelUrl() {
  return new Url('admin.content');
}