getUserWorkspaceName() public method

If no user is logged in this method returns null. Deprecated, use getPersonalWorkspaceName() instead.
Deprecation: 2.1
public getUserWorkspaceName ( ) : string
return string
 /**
  * Returns a specific URI string to redirect to after the login; or NULL if there is none.
  *
  * @param ActionRequest $actionRequest
  * @return string
  */
 public function getAfterLoginRedirectionUri(ActionRequest $actionRequest)
 {
     $user = $this->userService->getBackendUser();
     if ($user === null) {
         return null;
     }
     $workspaceName = $this->userService->getUserWorkspaceName();
     $this->createWorkspaceAndRootNodeIfNecessary($workspaceName);
     $uriBuilder = new UriBuilder();
     $uriBuilder->setRequest($actionRequest);
     $uriBuilder->setFormat('html');
     $uriBuilder->setCreateAbsoluteUri(true);
     $contentContext = $this->createContext($workspaceName);
     $lastVisitedNode = $this->getLastVisitedNode($workspaceName);
     if ($lastVisitedNode !== null) {
         return $uriBuilder->uriFor('show', array('node' => $lastVisitedNode), 'Frontend\\Node', 'Neos.Neos');
     }
     return $uriBuilder->uriFor('show', array('node' => $contentContext->getCurrentSiteNode()), 'Frontend\\Node', 'Neos.Neos');
 }