fcabeec7ec2aebd24530a3a63785992d91184907
[yaffs-website] / web / core / modules / shortcut / src / Form / ShortcutDeleteForm.php
1 <?php
2
3 namespace Drupal\shortcut\Form;
4
5 use Drupal\Core\Entity\ContentEntityDeleteForm;
6 use Drupal\Core\Url;
7
8 /**
9  * Builds the shortcut link deletion form.
10  */
11 class ShortcutDeleteForm extends ContentEntityDeleteForm {
12
13   /**
14    * {@inheritdoc}
15    */
16   public function getFormId() {
17     return 'shortcut_confirm_delete';
18   }
19
20   /**
21    * {@inheritdoc}
22    */
23   public function getCancelUrl() {
24     return new Url('entity.shortcut_set.customize_form', [
25       'shortcut_set' => $this->entity->bundle(),
26     ]);
27   }
28
29   /**
30    * {@inheritdoc}
31    */
32   protected function getRedirectUrl() {
33     return $this->getCancelUrl();
34   }
35
36 }