plugin/team/Manager/TeamManager.php
public function getWorkspaceTeamParameters(Workspace $workspace)
    {
        $teamParams = $this->workspaceTeamParamsRepo->findOneBy(['workspace' => $workspace]);

        if (empty($teamParams)) {
            $teamParams = new WorkspaceTeamParameters();
            $teamParams->setWorkspace($workspace);
        }

        return $teamParams;
    }
public function getWorkspaceTeamParameters(Workspace $workspace)
    {
        $teamParams = $this->workspaceTeamParamsRepo->findOneBy(['workspace' => $workspace]);

        if (empty($teamParams)) {
            $teamParams = new WorkspaceTeamParameters();
            $teamParams->setWorkspace($workspace);
        }

        return $teamParams;
    }
public function getWorkspaceTeamParameters ( Workspace $ workspace ) { $ teamParams = $ this -> workspaceTeamParamsRepo -> findOneBy ( [ 'workspace' => $ workspace ] ) ; if ( empty ( $ teamParams ) ) { $ teamParams = new WorkspaceTeamParameters ( ) ; $ teamParams -> setWorkspace ( $ workspace ) ; } return $ teamParams ; }
Gets team parameters for a workspace.

@param Workspace $workspace

@return WorkspaceTeamParameters
Gets team parameters for a workspace .