Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / entityqueue / src / Form / EntitySubqueueDeleteForm.php
1 <?php
2
3 namespace Drupal\entityqueue\Form;
4
5 use Drupal\Core\Entity\ContentEntityDeleteForm;
6
7 /**
8  * Provides the entity subqueue delete confirmation form.
9  */
10 class EntitySubqueueDeleteForm extends ContentEntityDeleteForm {
11
12   /**
13    * {@inheritdoc}
14    */
15   public function getCancelUrl() {
16     // Point to the parent queue entity.
17     return $this->entity->queue->entity->urlInfo('subqueue-list');
18   }
19
20   /**
21    * {@inheritdoc}
22    */
23   protected function getRedirectUrl() {
24     return $this->getCancelUrl();
25   }
26
27 }