lib/Persistence/Doctrine/Mapper/CollectionMapper.php
public function mapItems(array $data): array
    {
        $items = [];

        foreach ($data as $dataItem) {
            $items[] = Item::fromArray(
                [
                    'id' => (int) $dataItem['id'],
                    'collectionId' => (int) $dataItem['collection_id'],
                    'position' => (int) $dataItem['position'],
                    'value' => $dataItem['value'],
                    'valueType' => $dataItem['value_type'],
                    'status' => (int) $dataItem['status'],
                    'config' => $this->buildParameters((string) $dataItem['config']),
                ]
            );
        }

        return $items;
    }
public function mapItems(array $data): array
    {
        $items = [];

        foreach ($data as $dataItem) {
            $items[] = Item::fromArray(
                [
                    'id' => (int) $dataItem['id'],
                    'collectionId' => (int) $dataItem['collection_id'],
                    'position' => (int) $dataItem['position'],
                    'value' => $dataItem['value'],
                    'valueType' => $dataItem['value_type'],
                    'status' => (int) $dataItem['status'],
                    'config' => $this->buildParameters((string) $dataItem['config']),
                ]
            );
        }

        return $items;
    }
public function mapItems ( array $ data ) : array { $ items = [ ] ; foreach ( $ data as $ dataItem ) { $ items [ ] = Item :: fromArray ( [ 'id' => ( int ) $ dataItem [ 'id' ] , 'collectionId' => ( int ) $ dataItem [ 'collection_id' ] , 'position' => ( int ) $ dataItem [ 'position' ] , 'value' => $ dataItem [ 'value' ] , 'valueType' => $ dataItem [ 'value_type' ] , 'status' => ( int ) $ dataItem [ 'status' ] , 'config' => $ this -> buildParameters ( ( string ) $ dataItem [ 'config' ] ) , ] ) ; } return $ items ; }
Maps data from database to item values.

@return \Netgen\BlockManager\Persistence\Values\Collection\Item[]
Maps data from database to item values .