You are here

public function ContentConfirmForm::getCancelUrl in GatherContent 8.3

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

Return value

\Drupal\Core\Url A URL object.

Overrides ConfirmFormInterface::getCancelUrl

2 methods override ContentConfirmForm::getCancelUrl()
ContentUpdateConfirmForm::getCancelUrl in src/Form/ContentUpdateConfirmForm.php
Returns the route to go to if the user cancels the action.
ContentUploadConfirmForm::getCancelUrl in src/Form/ContentUploadConfirmForm.php
Returns the route to go to if the user cancels the action.

File

src/Form/ContentConfirmForm.php, line 83

Class

ContentConfirmForm
Provides a node deletion confirmation form.

Namespace

Drupal\gathercontent\Form

Code

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