Sulu\Component\Webspace\Manager\WebspaceManagerInterface::getPortalInformations PHP Method

getPortalInformations() public method

Returns the portal informations managed by this WebspaceManger.
public getPortalInformations ( string $environment ) : PortalInformation[]
$environment string
return Sulu\Component\Webspace\PortalInformation[]
    public function getPortalInformations($environment);

Usage Example

Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 public function resolveForPreview($webspaceKey, $locale)
 {
     // take first portal url
     $portalInformation = $this->webspaceManager->getPortalInformations($this->environment);
     $portalUrl = array_keys($portalInformation)[0];
     return ['request' => ['webspaceKey' => $webspaceKey, 'locale' => $locale, 'defaultLocale' => $locale, 'portalUrl' => $portalUrl, 'resourceLocatorPrefix' => '', 'resourceLocator' => '', 'get' => $this->requestStack->getCurrentRequest()->query->all(), 'post' => $this->requestStack->getCurrentRequest()->request->all(), 'analyticsKey' => $this->previewDefaults['analyticsKey']]];
 }
All Usage Examples Of Sulu\Component\Webspace\Manager\WebspaceManagerInterface::getPortalInformations