<?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();
}
}
Name | Description |
---|---|
JobItemDeleteForm | Provides a confirmation delete form for 'tmgmt_job_item' entity. |