public function getSubnodesByTag($tag)
    {
        return $this
            ->getSubnodes()
            ->filter(function (\Elcodi\Component\Menu\Entity\Menu\Interfaces\NodeInterface $menuNode) use ($tag) {

                return $menuNode->getTag() == $tag;
            });
    }
public function getSubnodesByTag($tag)
    {
        return $this
            ->getSubnodes()
            ->filter(function (\Elcodi\Component\Menu\Entity\Menu\Interfaces\NodeInterface $menuNode) use ($tag) {

                return $menuNode->getTag() == $tag;
            });
    }
public function getSubnodesByTag ( $ tag ) { return $ this -> getSubnodes ( ) -> filter ( function ( \ Elcodi \ Component \ Menu \ Entity \ Menu \ Interfaces \ NodeInterface $ menuNode ) use ( $ tag ) { return $ menuNode -> getTag ( ) == $ tag ; } ) ; }
Get Subnodes sorted by priority and filtered by tag.

@return \Doctrine\Common\Collections\ArrayCollection Subnodes
Get Subnodes sorted by priority and filtered by tag .