lib/Persistence/Doctrine/Mapper/LayoutMapper.php
public function mapZones(array $data): array
    {
        $zones = [];

        foreach ($data as $dataItem) {
            $zones[$dataItem['identifier']] = Zone::fromArray(
                [
                    'identifier' => $dataItem['identifier'],
                    'layoutId' => (int) $dataItem['layout_id'],
                    'status' => (int) $dataItem['status'],
                    'rootBlockId' => (int) $dataItem['root_block_id'],
                    'linkedLayoutId' => $dataItem['linked_layout_id'] !== null ? (int) $dataItem['linked_layout_id'] : null,
                    'linkedZoneIdentifier' => $dataItem['linked_zone_identifier'],
                ]
            );
        }

        return $zones;
    }
public function mapZones(array $data): array
    {
        $zones = [];

        foreach ($data as $dataItem) {
            $zones[$dataItem['identifier']] = Zone::fromArray(
                [
                    'identifier' => $dataItem['identifier'],
                    'layoutId' => (int) $dataItem['layout_id'],
                    'status' => (int) $dataItem['status'],
                    'rootBlockId' => (int) $dataItem['root_block_id'],
                    'linkedLayoutId' => $dataItem['linked_layout_id'] !== null ? (int) $dataItem['linked_layout_id'] : null,
                    'linkedZoneIdentifier' => $dataItem['linked_zone_identifier'],
                ]
            );
        }

        return $zones;
    }
public function mapZones ( array $ data ) : array { $ zones = [ ] ; foreach ( $ data as $ dataItem ) { $ zones [ $ dataItem [ 'identifier' ] ] = Zone :: fromArray ( [ 'identifier' => $ dataItem [ 'identifier' ] , 'layoutId' => ( int ) $ dataItem [ 'layout_id' ] , 'status' => ( int ) $ dataItem [ 'status' ] , 'rootBlockId' => ( int ) $ dataItem [ 'root_block_id' ] , 'linkedLayoutId' => $ dataItem [ 'linked_layout_id' ] !== null ? ( int ) $ dataItem [ 'linked_layout_id' ] : null , 'linkedZoneIdentifier' => $ dataItem [ 'linked_zone_identifier' ] , ] ) ; } return $ zones ; }
Maps data from database to zone values.

@return \Netgen\BlockManager\Persistence\Values\Layout\Zone[]
Maps data from database to zone values .