src/Sulu/Bundle/PageBundle/EventListener/WebspaceSerializeEventSubscriber.php
private function appendPortalInformation(Webspace $webspace, Context $context, JsonSerializationVisitor $visitor)
    {
        $portalInformation = $this->webspaceManager->getPortalInformationsByWebspaceKey(
            $this->environment,
            $webspace->getKey()
        );

        $portalInformation = $context->accept(array_values($portalInformation));
        $visitor->addData('portalInformation', $portalInformation);
    }
private function appendPortalInformation(Webspace $webspace, Context $context, JsonSerializationVisitor $visitor)
    {
        $portalInformation = $this->webspaceManager->getPortalInformationsByWebspaceKey(
            $this->environment,
            $webspace->getKey()
        );

        $portalInformation = $context->accept(array_values($portalInformation));
        $visitor->addData('portalInformation', $portalInformation);
    }
private function appendPortalInformation ( Webspace $ webspace , Context $ context , JsonSerializationVisitor $ visitor ) { $ portalInformation = $ this -> webspaceManager -> getPortalInformationsByWebspaceKey ( $ this -> environment , $ webspace -> getKey ( ) ) ; $ portalInformation = $ context -> accept ( array_values ( $ portalInformation ) ) ; $ visitor -> addData ( 'portalInformation' , $ portalInformation ) ; }
Extract portal-information and add them to serialization.

@param Webspace $webspace
@param Context $context
@param JsonSerializationVisitor $visitor
Extract portal - information and add them to serialization .