You are here

public function EckEntityDeleteForm::getRedirectUrl in Entity Construction Kit (ECK) 8

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/Entity/EckEntityDeleteForm.php, line 18

Class

EckEntityDeleteForm
Provides a form for deleting an ECK entity.

Namespace

Drupal\eck\Form\Entity

Code

public function getRedirectUrl() {
  return new Url('eck.entity.' . $this->entity
    ->getEntityTypeId() . '.list');
}