File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public function createStructure(array $options): ItemInterface
61
61
{
62
62
/** @var \Knp\Menu\ItemInterface|\Knp\Menu\ItemInterface[] $menu */
63
63
$ menu = $ this ->factory ->createItem ('root ' );
64
- $ route = $ options ['route ' ];
64
+ $ route = $ options ['route ' ] ?? ' ibexa.user_settings.list ' ;
65
65
66
66
$ saveItem = $ this ->createMenuItem (
67
67
self ::ITEM__SAVE ,
@@ -70,7 +70,7 @@ public function createStructure(array $options): ItemInterface
70
70
'class ' => 'ibexa-btn--trigger ' ,
71
71
'data-click ' => '#user_setting_update_update ' ,
72
72
],
73
- 'route ' => $ route ?? ' ibexa.user_settings.list ' ,
73
+ 'route ' => $ route ,
74
74
'routeParameters ' => [
75
75
'contentId ' => $ options ['content_id ' ] ?? null ,
76
76
'versionNo ' => $ options ['version_no ' ] ?? null ,
@@ -97,7 +97,7 @@ public function createStructure(array $options): ItemInterface
97
97
self ::ITEM__CANCEL => $ this ->createMenuItem (
98
98
self ::ITEM__CANCEL ,
99
99
[
100
- 'route ' => $ route ?? ' ibexa.user_settings.list ' ,
100
+ 'route ' => $ route ,
101
101
'routeParameters ' => [
102
102
'contentId ' => $ options ['content_id ' ] ?? null ,
103
103
'versionNo ' => $ options ['version_no ' ] ?? null ,
You can’t perform that action at this time.
0 commit comments