From fadf8d86a06b3f23d63478ab5c77065806b79e8f Mon Sep 17 00:00:00 2001 From: Kevin Date: Wed, 5 Jun 2024 09:17:15 +0200 Subject: [PATCH] Override getPathByConvention function in MenuItemAdminListConfigurator so it returns the correct path --- .../AdminList/MenuItemAdminListConfigurator.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Kunstmaan/MenuBundle/AdminList/MenuItemAdminListConfigurator.php b/src/Kunstmaan/MenuBundle/AdminList/MenuItemAdminListConfigurator.php index 2fc92d8018..650f5493de 100644 --- a/src/Kunstmaan/MenuBundle/AdminList/MenuItemAdminListConfigurator.php +++ b/src/Kunstmaan/MenuBundle/AdminList/MenuItemAdminListConfigurator.php @@ -137,4 +137,18 @@ public function getLimit() { return 1000; } + + /** + * @param string|null $suffix + * + * @return string + */ + public function getPathByConvention($suffix = null) + { + if (null === $suffix || $suffix === '') { + return 'kunstmaanmenubundle_admin_menuitem'; + } + + return sprintf('kunstmaanmenubundle_admin_menuitem_%s', $suffix); + } }