Pull merge.
[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  * @internal
12  */
13 class ShortcutDeleteForm extends ContentEntityDeleteForm {
14
15   /**
16    * {@inheritdoc}
17    */
18   public function getFormId() {
19     return 'shortcut_confirm_delete';
20   }
21
22   /**
23    * {@inheritdoc}
24    */
25   public function getCancelUrl() {
26     return new Url('entity.shortcut_set.customize_form', [
27       'shortcut_set' => $this->entity->bundle(),
28     ]);
29   }
30
31   /**
32    * {@inheritdoc}
33    */
34   protected function getRedirectUrl() {
35     return $this->getCancelUrl();
36   }
37
38 }