You are here

protected function JobItemDeleteForm::getRedirectUrl in Translation Management Tool 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/JobItemDeleteForm.php, line 22

Class

JobItemDeleteForm
Provides a confirmation delete form for 'tmgmt_job_item' entity.

Namespace

Drupal\tmgmt\Form

Code

protected function getRedirectUrl() {
  return $this
    ->getEntity()
    ->getJob()
    ->toUrl();
}