class JobItemDeleteForm

Provides a confirmation delete form for 'tmgmt_job_item' entity.

Hierarchy

  • class \Drupal\tmgmt\Form\JobItemDeleteForm extends \Drupal\Core\Entity\ContentEntityDeleteForm

Expanded class hierarchy of JobItemDeleteForm

File

src/Form/JobItemDeleteForm.php, line 10

Namespace

Drupal\tmgmt\Form
View source
class JobItemDeleteForm extends ContentEntityDeleteForm {

  /**
   * {@inheritdoc}
   */
  public function getCancelUrl() {
    return $this
      ->getEntity()
      ->toUrl();
  }

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

}

Members