Skip to content

Commit

Permalink
feat: use parent generateSidebarLink
Browse files Browse the repository at this point in the history
  • Loading branch information
jinpresta committed Aug 29, 2024
1 parent 9a0596a commit c5a35a2
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions src/Controller/Admin/ModuleCatalogController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c5a35a2

Please sign in to comment.