tmgmt-8.x-1.x-dev/src/Form/JobItemDeleteForm.php

src/Form/JobItemDeleteForm.php
<?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();
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc