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

findPortalInformationsByWebspaceKeyAndLocale() public method

Returns all portal which matches the given webspace-key and locale.
public findPortalInformationsByWebspaceKeyAndLocale ( string $webspaceKey, string $locale, string $environment ) : PortalInformation[]
$webspaceKey string The webspace-key which the portal should match
$locale string The locale which the portal should match
$environment string The environment in which the url should be searched
return Sulu\Component\Webspace\PortalInformation[]
    public function findPortalInformationsByWebspaceKeyAndLocale($webspaceKey, $locale, $environment);

Usage Example

Esempio n. 1
0
 /**
  * Dump given webspace.
  *
  * @param Webspace $webspace
  */
 private function dumpWebspace(Webspace $webspace)
 {
     foreach ($webspace->getAllLocalizations() as $localization) {
         $this->output->writeln(sprintf(' - %s (%s)', $webspace->getKey(), $localization->getLocale()));
         $this->dumpPortalInformations($this->webspaceManager->findPortalInformationsByWebspaceKeyAndLocale($webspace->getKey(), $localization->getLocale(), $this->environment));
     }
 }
All Usage Examples Of Sulu\Component\Webspace\Manager\WebspaceManagerInterface::findPortalInformationsByWebspaceKeyAndLocale