public function MediaDeleteForm::getCancelUrl in Media entity 8
Returns the route to go to if the user cancels the action.
Return value
\Drupal\Core\Url A URL object.
Overrides ContentEntityDeleteForm::getCancelUrl
File
- src/
Form/ MediaDeleteForm.php, line 16
Class
- MediaDeleteForm
- Provides a form for deleting a media.
Namespace
Drupal\media_entity\FormCode
public function getCancelUrl() {
return Url::fromUri('internal:/');
}