public function FileDeleteForm::getCancelUrl in Panopoly 8.2
Returns the route to go to if the user cancels the action.
Return value
\Drupal\Core\Url A URL object.
Overrides ContentEntityDeleteForm::getCancelUrl
File
- modules/
panopoly/ panopoly_media/ src/ Form/ FileDeleteForm.php, line 81
Class
- FileDeleteForm
- Provides a form for deleting a file.
Namespace
Drupal\panopoly_media\FormCode
public function getCancelUrl() {
// Needed because there is no canonical link for file entities.
return Url::fromRoute('<front>');
}