Neos.ContentRepository/Classes/Domain/Model/Workspace.php
public function getBaseWorkspaces()
    {
        $baseWorkspaces = [];
        $baseWorkspace = $this->baseWorkspace;

        while ($baseWorkspace !== null) {
            $baseWorkspaces[$baseWorkspace->getName()] = $baseWorkspace;
            $baseWorkspace = $baseWorkspace->getBaseWorkspace();
        }

        return $baseWorkspaces;
    }
public function getBaseWorkspaces()
    {
        $baseWorkspaces = [];
        $baseWorkspace = $this->baseWorkspace;

        while ($baseWorkspace !== null) {
            $baseWorkspaces[$baseWorkspace->getName()] = $baseWorkspace;
            $baseWorkspace = $baseWorkspace->getBaseWorkspace();
        }

        return $baseWorkspaces;
    }
public function getBaseWorkspaces ( ) { $ baseWorkspaces = [ ] ; $ baseWorkspace = $ this -> baseWorkspace ; while ( $ baseWorkspace !== null ) { $ baseWorkspaces [ $ baseWorkspace -> getName ( ) ] = $ baseWorkspace ; $ baseWorkspace = $ baseWorkspace -> getBaseWorkspace ( ) ; } return $ baseWorkspaces ; }
Returns all base workspaces, if any

@return Workspace[]
Returns all base workspaces if any