protected function DeleteForm::getCancelPath

Same name in this branch
  1. 8.x drupal/core/modules/forum/lib/Drupal/forum/Form/DeleteForm.php \Drupal\forum\Form\DeleteForm::getCancelPath()
  2. 8.x drupal/core/modules/contact/lib/Drupal/contact/Form/DeleteForm.php \Drupal\contact\Form\DeleteForm::getCancelPath()
  3. 8.x drupal/core/modules/views_ui/lib/Drupal/views_ui/Form/DeleteForm.php \Drupal\views_ui\Form\DeleteForm::getCancelPath()
  4. 8.x drupal/core/modules/path/lib/Drupal/path/Form/DeleteForm.php \Drupal\path\Form\DeleteForm::getCancelPath()
  5. 8.x drupal/core/modules/action/lib/Drupal/action/Form/DeleteForm.php \Drupal\action\Form\DeleteForm::getCancelPath()

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

Return value

string|array This can be either:

  • A string containing a Drupal path.
  • An associative array with a 'path' key. Additional array values are passed as the $options parameter to l().

If the 'destination' query parameter is set in the URL when viewing a confirmation form, that value will be used instead of this path.

Overrides ConfirmFormBase::getCancelPath

File

drupal/core/modules/action/lib/Drupal/action/Form/DeleteForm.php, line 43
Contains \Drupal\action\Form\DeleteForm.

Class

DeleteForm
Builds a form to delete an action.

Namespace

Drupal\action\Form

Code

protected function getCancelPath() {
  return 'admin/config/system/actions';
}