Smile\ElasticsuiteCatalog\Model\Autocomplete\Category\DataProvider::getItems PHP Method

getItems() public method

{@inheritDoc}
public getItems ( )
    public function getItems()
    {
        $result = [];
        $categoryCollection = $this->getCategoryCollection();
        if ($categoryCollection) {
            foreach ($categoryCollection as $category) {
                $result[] = $this->itemFactory->create(['category' => $category, 'type' => $this->getType()]);
            }
        }
        return $result;
    }