Smile\ElasticsuiteVirtualCategory\Model\Preview::getData PHP Метод

getData() публичный Метод

Load preview data.
public getData ( ) : array
Результат array
    public function getData()
    {
        $manualSortProductCollection = $this->getManualSortProductCollection();
        $automaticProductCollection = $this->getAutomaticSortProductCollection()->setPageSize($this->size);
        $loadedProducts = array_merge($automaticProductCollection->getItems(), $manualSortProductCollection->getItems());
        return ['products' => $this->loadItems($loadedProducts), 'size' => $automaticProductCollection->getSize()];
    }