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

getPortalUrl() public method

Returns the url of the current portal.
public getPortalUrl ( ) : string
return string
    public function getPortalUrl();

Usage Example

 /**
  * {@inheritdoc}
  */
 public function getContentRootPath($full = false)
 {
     if ($this->requestAnalyzer !== null) {
         if ($full) {
             return $this->requestAnalyzer->getPortalUrl();
         } else {
             return $this->requestAnalyzer->getResourceLocatorPrefix();
         }
     } else {
         return '/';
     }
 }
All Usage Examples Of Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface::getPortalUrl