src/Sulu/Bundle/PageBundle/EventListener/WebspaceSerializeEventSubscriber.php
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;
    }
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;
    }
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 ; }
Returns custom-url data with the connected locales.

@param Portal $portal
@param Environment $environment
@param Context $context

@return array
Returns custom - url data with the connected locales .