3 namespace Drupal\shortcut\Form;
5 use Drupal\Core\Entity\ContentEntityDeleteForm;
9 * Builds the shortcut link deletion form.
13 class ShortcutDeleteForm extends ContentEntityDeleteForm {
18 public function getFormId() {
19 return 'shortcut_confirm_delete';
25 public function getCancelUrl() {
26 return new Url('entity.shortcut_set.customize_form', [
27 'shortcut_set' => $this->entity->bundle(),
34 protected function getRedirectUrl() {
35 return $this->getCancelUrl();