You are here

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\Form

Code

public function getCancelUrl() {

  // Needed because there is no canonical link for file entities.
  return Url::fromRoute('<front>');
}