Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface::getWebspace PHP Method

getWebspace() public method

Returns the current webspace for this request.
public getWebspace ( ) : Webspace
return Sulu\Component\Webspace\Webspace
    public function getWebspace();

Usage Example

Example #1
0
 /**
  * {@inheritdoc}
  */
 public function loadParent($uuid)
 {
     $session = $this->sessionManager->getSession();
     $contentsNode = $this->sessionManager->getContentNode($this->requestAnalyzer->getWebspace()->getKey());
     $node = $session->getNodeByIdentifier($uuid);
     if ($node->getDepth() <= $contentsNode->getDepth()) {
         throw new ParentNotFoundException($uuid);
     }
     return $this->load($node->getParent()->getIdentifier());
 }
All Usage Examples Of Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface::getWebspace