src/Sulu/Bundle/AdminBundle/Admin/AdminPool.php
public function getNavigation()
    {
        /** @var Navigation $navigation */
        $navigation = null;
        $this->iterateAdmins(function(Admin $admin) use (&$navigation) {
            if (null === $navigation) {
                $navigation = $admin->getNavigation();

                return;
            }
            $navigation = $navigation->merge($admin->getNavigation());
        });

        return $navigation;
    }
public function getNavigation()
    {
        /** @var Navigation $navigation */
        $navigation = null;
        $this->iterateAdmins(function(Admin $admin) use (&$navigation) {
            if (null === $navigation) {
                $navigation = $admin->getNavigation();

                return;
            }
            $navigation = $navigation->merge($admin->getNavigation());
        });

        return $navigation;
    }
public function getNavigation ( ) { /** @var Navigation $navigation */ $ navigation = null ; $ this -> iterateAdmins ( function ( Admin $ admin ) use ( & $ navigation ) { if ( null === $ navigation ) { $ navigation = $ admin -> getNavigation ( ) ; return ; } $ navigation = $ navigation -> merge ( $ admin -> getNavigation ( ) ) ; } ) ; return $ navigation ; }
Returns the navigation combined from all Admin objects.

@return Navigation
Returns the navigation combined from all Admin objects .