Skip to content

Commit

Permalink
added locationId to menustructure, added .idea folder to gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
yominuma committed Nov 26, 2019
1 parent 34cabd2 commit 1321d11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -5,3 +5,4 @@ composer.lock
composer.phar
phpunit.phar
/nbproject/
.idea/
1 change: 1 addition & 0 deletions src/Services/MenuService.php
Expand Up @@ -109,6 +109,7 @@ protected function buildMenuStructureArray($menuItems, $menuConfiguration, $leve
$menuStructure[] = [
'name'=> $content->getName(),
'url' => $this->router->generate($route, []),
'locationId' => $menuItem->valueObject->id,
'active' => $this->currentLocationId == $menuItem->valueObject->id ? true : false,
'submenu' => $this->fetchNextLevelItems($menuItem->valueObject, $menuConfiguration, $level + 1, true)
];
Expand Down

0 comments on commit 1321d11

Please sign in to comment.