protected function PhotosImageDeleteForm::getRedirectUrl in Album Photos 6.0.x
Same name and namespace in other branches
- 8.5 src/Form/PhotosImageDeleteForm.php \Drupal\photos\Form\PhotosImageDeleteForm::getRedirectUrl()
Returns the URL where the user should be redirected after deletion.
Return value
\Drupal\Core\Url The redirect URL.
Overrides EntityDeleteFormTrait::getRedirectUrl
File
- src/
Form/ PhotosImageDeleteForm.php, line 50
Class
- PhotosImageDeleteForm
- Defines a confirmation form for deleting images.
Namespace
Drupal\photos\FormCode
protected function getRedirectUrl() {
/** @var \Drupal\photos\PhotosImageInterface $entity */
$entity = $this
->getEntity();
return $entity
->getAlbumUrl();
}