public function CandidateNodesRevisionsDeleteForm::getCancelUrl in Node Revision Delete 8
Returns the route to go to if the user cancels the action.
Return value
\Drupal\Core\Url A URL object.
Overrides ConfirmFormInterface::getCancelUrl
1 call to CandidateNodesRevisionsDeleteForm::getCancelUrl()
- CandidateNodesRevisionsDeleteForm::submitForm in src/
Form/ CandidateNodesRevisionsDeleteForm.php - Form submission handler.
File
- src/
Form/ CandidateNodesRevisionsDeleteForm.php, line 110
Class
- CandidateNodesRevisionsDeleteForm
- Provides a candidate node revision deletion confirmation form.
Namespace
Drupal\node_revision_delete\FormCode
public function getCancelUrl() {
return new Url('node_revision_delete.candidate_nodes', [
'node_type' => $this->node
->getType(),
]);
}