lib/Serializer/Normalizer/V1/LayoutNormalizer.php
private function getZones(Layout $layout, LayoutTypeInterface $layoutType): Generator
    {
        foreach ($layout as $zoneIdentifier => $zone) {
            $linkedZone = $zone->getLinkedZone();

            yield [
                'identifier' => $zoneIdentifier,
                'name' => $this->getZoneName($zone, $layoutType),
                'block_ids' => $this->blockService->loadZoneBlocks($zone)->getBlockIds(),
                'allowed_block_definitions' => $this->getAllowedBlocks(
                    $zone,
                    $layoutType
                ),
                'linked_layout_id' => $linkedZone ? $linkedZone->getLayoutId() : null,
                'linked_zone_identifier' => $linkedZone ? $linkedZone->getIdentifier() : null,
            ];
        }
    }
private function getZones(Layout $layout, LayoutTypeInterface $layoutType): Generator
    {
        foreach ($layout as $zoneIdentifier => $zone) {
            $linkedZone = $zone->getLinkedZone();

            yield [
                'identifier' => $zoneIdentifier,
                'name' => $this->getZoneName($zone, $layoutType),
                'block_ids' => $this->blockService->loadZoneBlocks($zone)->getBlockIds(),
                'allowed_block_definitions' => $this->getAllowedBlocks(
                    $zone,
                    $layoutType
                ),
                'linked_layout_id' => $linkedZone ? $linkedZone->getLayoutId() : null,
                'linked_zone_identifier' => $linkedZone ? $linkedZone->getIdentifier() : null,
            ];
        }
    }
private function getZones ( Layout $ layout , LayoutTypeInterface $ layoutType ) : Generator { foreach ( $ layout as $ zoneIdentifier => $ zone ) { $ linkedZone = $ zone -> getLinkedZone ( ) ; yield [ 'identifier' => $ zoneIdentifier , 'name' => $ this -> getZoneName ( $ zone , $ layoutType ) , 'block_ids' => $ this -> blockService -> loadZoneBlocks ( $ zone ) -> getBlockIds ( ) , 'allowed_block_definitions' => $ this -> getAllowedBlocks ( $ zone , $ layoutType ) , 'linked_layout_id' => $ linkedZone ? $ linkedZone -> getLayoutId ( ) : null , 'linked_zone_identifier' => $ linkedZone ? $ linkedZone -> getIdentifier ( ) : null , ] ; } }
Returns the array with layout zones.
Returns the array with layout zones .