JobItemDeleteForm.php

Namespace

Drupal\tmgmt\Form

File

src/Form/JobItemDeleteForm.php
View source
<?php

namespace Drupal\tmgmt\Form;

use Drupal\Core\Entity\ContentEntityDeleteForm;

/**
 * Provides a confirmation delete form for 'tmgmt_job_item' entity.
 */
class JobItemDeleteForm extends ContentEntityDeleteForm {

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

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

}

Classes

Namesort descending Description
JobItemDeleteForm Provides a confirmation delete form for 'tmgmt_job_item' entity.