3 namespace Drupal\shortcut\Form;
5 use Drupal\Core\Entity\ContentEntityDeleteForm;
9 * Builds the shortcut link deletion form.
11 class ShortcutDeleteForm extends ContentEntityDeleteForm {
16 public function getFormId() {
17 return 'shortcut_confirm_delete';
23 public function getCancelUrl() {
24 return new Url('entity.shortcut_set.customize_form', [
25 'shortcut_set' => $this->entity->bundle(),
32 protected function getRedirectUrl() {
33 return $this->getCancelUrl();