chore: code cleanup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user