src/Sulu/Bundle/AdminBundle/Navigation/NavigationItem.php
public function findChildren(self $navigationItem)
    {
        foreach ($this->getChildren() as $child) {
            /** @var NavigationItem $child */
            if ($child->equalsChildless($navigationItem)) {
                return $child;
            }
        }

        return;
    }
public function findChildren(self $navigationItem)
    {
        foreach ($this->getChildren() as $child) {
            /** @var NavigationItem $child */
            if ($child->equalsChildless($navigationItem)) {
                return $child;
            }
        }

        return;
    }
public function findChildren ( self $ navigationItem ) { foreach ( $ this -> getChildren ( ) as $ child ) { /** @var NavigationItem $child */ if ( $ child -> equalsChildless ( $ navigationItem ) ) { return $ child ; } } return ; }
Searches for a specific NavigationItem in the children of this NavigationItem.

@param NavigationItem $navigationItem The navigationItem we look for

@return NavigationItem|null Null if the NavigationItem is not found, otherwise the found NavigationItem
Searches for a specific NavigationItem in the children of this NavigationItem .