You are here

public function JobItemDeleteForm::getCancelUrl in Translation Management Tool 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/JobItemDeleteForm.php, line 15

Class

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

Namespace

Drupal\tmgmt\Form

Code

public function getCancelUrl() {
  return $this
    ->getEntity()
    ->toUrl();
}