Skip to content
This repository has been archived by the owner on May 30, 2019. It is now read-only.

Commit

Permalink
filter out disabled menu nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
xphere committed Apr 22, 2015
1 parent efb4e50 commit c6ef121
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Elcodi/Component/Menu/Services/MenuManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ protected function loadSubnodes(SubnodesAwareInterface $node)

$node
->getSubnodes()
->filter(function (NodeInterface $node) {

return $node->isEnabled();
})
->map(function (NodeInterface $node) use (&$subnodes) {

$subnodeId = $node->getId();
Expand Down

0 comments on commit c6ef121

Please sign in to comment.