src/Sulu/Bundle/AdminBundle/Admin/AdminPool.php
public function getSecurityContexts()
    {
        $contexts = [];
        $this->iterateAdmins(function(Admin $admin) use (&$contexts) {
            $contexts = array_merge_recursive($contexts, $admin->getSecurityContexts());
        });

        return $contexts;
    }
public function getSecurityContexts()
    {
        $contexts = [];
        $this->iterateAdmins(function(Admin $admin) use (&$contexts) {
            $contexts = array_merge_recursive($contexts, $admin->getSecurityContexts());
        });

        return $contexts;
    }
public function getSecurityContexts ( ) { $ contexts = [ ] ; $ this -> iterateAdmins ( function ( Admin $ admin ) use ( & $ contexts ) { $ contexts = array_merge_recursive ( $ contexts , $ admin -> getSecurityContexts ( ) ) ; } ) ; return $ contexts ; }
Returns the combined security contexts from all Admin objects.

@return array
Returns the combined security contexts from all Admin objects .