public function PrivateMessageThreadDeleteForm::getCancelUrl in Private Message 8
Same name and namespace in other branches
- 8.2 src/Form/PrivateMessageThreadDeleteForm.php \Drupal\private_message\Form\PrivateMessageThreadDeleteForm::getCancelUrl()
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/ PrivateMessageThreadDeleteForm.php, line 31
Class
- PrivateMessageThreadDeleteForm
- Form definition for the private message delete form.
Namespace
Drupal\private_message\FormCode
public function getCancelUrl() {
return Url::fromRoute('entity.private_message_thread.canonical', [
'private_message_thread' => $this
->getEntity()
->id(),
]);
}