protected function PhotosImageDeleteForm::getRedirectUrl in Album Photos 8.5
Same name and namespace in other branches
- 6.0.x 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();
}