From c5a35a245023eb6159860de2f8ad8a3eb25d739b Mon Sep 17 00:00:00 2001 From: Jin JI Date: Thu, 29 Aug 2024 11:24:00 +0200 Subject: [PATCH] feat: use parent generateSidebarLink --- .../Admin/ModuleCatalogController.php | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/src/Controller/Admin/ModuleCatalogController.php b/src/Controller/Admin/ModuleCatalogController.php index 9bb01ad6f..3587231ac 100755 --- a/src/Controller/Admin/ModuleCatalogController.php +++ b/src/Controller/Admin/ModuleCatalogController.php @@ -173,30 +173,6 @@ public function cdcErrorAction(): Response ); } - /** - * Generates a documentation link. - * - * @param string $section Legacy controller name - * @param null|string $title Help title - * - * @return string - */ - protected function generateSidebarLink(string $section, ?string $title = null): string - { - if (empty($title)) { - $title = $this->trans('Help', [], 'Admin.Global'); - } - - $iso = (string) $this->legacyContext->getEmployeeLanguageIso(); - - $url = $this->generateUrl('admin_common_sidebar', [ - 'url' => $this->documentation->generateLink($section, $iso), - 'title' => $title, - ]); - - // this line is allow to revert a new behaviour introduce in sf 5.4 which break the result we used to have - return strtr($url, ['%2F' => '%252F']); - } /** * @throws Exception