Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface::getPortal PHP 메소드

getPortal() 공개 메소드

Returns the current portal for this request.
public getPortal ( ) : Portal
리턴 Sulu\Component\Webspace\Portal
    public function getPortal();

Usage Example

예제 #1
0
 /**
  * Set the active theme if there is a portal.
  *
  * @param GetResponseEvent $event
  */
 public function onKernelRequest(GetResponseEvent $event)
 {
     $portal = $this->requestAnalyzer->getPortal();
     if (null === $portal) {
         return;
     }
     $themeKey = $portal->getWebspace()->getTheme()->getKey();
     $this->activeTheme->setName($themeKey);
 }
All Usage Examples Of Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface::getPortal