Returns the languages of this portal.
public getLocalizations ( ) : |
||
return | The languages of this portal |
/** * Returns custom-url data with the connected locales. * * @param Portal $portal * @param Environment $environment * @param Context $context * * @return array */ private function getCustomUrlsForEnvironment(Portal $portal, Environment $environment, Context $context) { $customUrls = []; foreach ($environment->getCustomUrls() as $customUrl) { $customUrl = $context->accept($customUrl); $customUrl['locales'] = $context->accept($portal->getLocalizations()); $customUrls[] = $customUrl; } return $customUrls; }