You are here

public function DisableForm::getCancelUrl in Content Moderation Notifications 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

File

src/Form/DisableForm.php, line 53

Class

DisableForm
The enable/disable form for content moderation notification entities.

Namespace

Drupal\content_moderation_notifications\Form

Code

public function getCancelUrl() {
  return $this->notification
    ->toUrl('collection');
}