chore: code cleanup

This commit is contained in:
Björn Fromme
2024-01-31 18:08:27 +01:00
parent 4be039e482
commit 5d636108a1
+5 -6
View File
@@ -61,15 +61,14 @@ abstract class AbstractMenuBuilder
if (isset($options['routeParameters'])) {
$itemOptions['routeParameters'] = $options['routeParameters'];
}
$addedItem = $menu
if (isset($options['icon'])) {
$itemOptions['extras']['icon'] = $options['icon'];
}
return $menu
->addChild($options['title'], $itemOptions)
->setChildrenAttribute('title', $options['title'])
;
if (isset($options['icon'])) {
$addedItem->setExtra('icon', $options['icon']);
}
return $addedItem;
}
protected function getDefaultRouteParameters(string $parameter = 'id', string $default = '0'): array