You are here

public function ContentModerationNotificationsDeleteForm::getCancelUrl in Content Moderation Notifications 8.3

Same name and namespace in other branches
  1. 8 src/Form/ContentModerationNotificationsDeleteForm.php \Drupal\content_moderation_notifications\Form\ContentModerationNotificationsDeleteForm::getCancelUrl()
  2. 8.2 src/Form/ContentModerationNotificationsDeleteForm.php \Drupal\content_moderation_notifications\Form\ContentModerationNotificationsDeleteForm::getCancelUrl()

Gets the cancel URL.

Provides the URL to go to if the user cancels the action. For entity delete forms, this is typically the route that points at the list controller.

Return value

\Drupal\Core\Url The URL to go to if the user cancels the deletion.

Overrides ConfirmFormInterface::getCancelUrl

1 call to ContentModerationNotificationsDeleteForm::getCancelUrl()
ContentModerationNotificationsDeleteForm::submitForm in src/Form/ContentModerationNotificationsDeleteForm.php
The submit handler for the confirm form.

File

src/Form/ContentModerationNotificationsDeleteForm.php, line 64

Class

ContentModerationNotificationsDeleteForm
Class ContentModerationNotificationDeleteForm.

Namespace

Drupal\content_moderation_notifications\Form

Code

public function getCancelUrl() {
  return new Url('entity.content_moderation_notification.collection');
}