Skip to content

Commit

Permalink
Change positions of admin menu items.
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Nikolaev committed Nov 21, 2019
1 parent af125da commit 7998728
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Admin/Menu/ItemFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ public function getItems(): iterable

$filterFormTypeName = $this->metadataManager->getMetadata(Item::class)->getFilterFormTypeName();

foreach (array_values($this->menuConfig->getMenus()) as $position => $menu) {
yield $this->createItem($menu, $filterFormTypeName, $position);
foreach (array_values($this->menuConfig->getMenus()) as $i => $menu) {
yield $this->createItem($menu, $filterFormTypeName, ($i + 1) * 100);
}
}

Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,5 @@ darvin_menu:
7.0.4: Resolve menu item entity class before instantiating it in switch menu event subscriber.
7.0.5: Admin section: specify filter form's heading field.
7.0.7: Change positions of admin menu items.

0 comments on commit 7998728

Please sign in to comment.