moduleHandler->moduleExists('menu_ui')) { return new Url('entity.menu.edit_form', ['menu' => $this->entity->getMenuName()]); } return $this->entity->urlInfo(); } /** * {@inheritdoc} */ protected function getRedirectUrl() { return $this->getCancelUrl(); } /** * {@inheritdoc} */ protected function getDeletionMessage() { return $this->t('The menu link %title has been deleted.', ['%title' => $this->entity->label()]); } }