Bundle/MediaBundle/Helper/Menu/MenuItem.php
public function getTopChildren()
    {
        $result = [];
        $children = $this->getChildren();
        foreach ($children as $child) {
            if ($child instanceof TopMenuItem) {
                $result[] = $child;
            }
        }

        return $result;
    }
public function getTopChildren()
    {
        $result = [];
        $children = $this->getChildren();
        foreach ($children as $child) {
            if ($child instanceof TopMenuItem) {
                $result[] = $child;
            }
        }

        return $result;
    }
public function getTopChildren ( ) { $ result = [ ] ; $ children = $ this -> getChildren ( ) ; foreach ( $ children as $ child ) { if ( $ child instanceof TopMenuItem ) { $ result [ ] = $ child ; } } return $ result ; }
Return top children of current menu item.

@return TopMenuItem[]
Return top children of current menu item .