public function PollVoteDeleteForm::getCancelUrl in Poll 8
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/ PollVoteDeleteForm.php, line 27
Class
- PollVoteDeleteForm
- Provides a form for deleting a vote.
Namespace
Drupal\poll\FormCode
public function getCancelUrl() {
return $this->entity
->toUrl();
}