public function getSearchableProducts($storeId, $productIds = null)
{
$select = $this->getConnection()->select()->from(['e' => $this->getTable('catalog_product_entity')]);
$this->addIsVisibleInStoreFilter($select, $storeId);
if ($productIds !== null) {
$select->where('e.entity_id IN (?)', $productIds);
}
return $this->connection->fetchAll($select);
}
/** * Load a bulk of product data. * * @param int $storeId Store id. * @param string $productIds Product ids filter. * * @return array */ private function getSearchableProducts($storeId, $productIds = null) { return $this->resourceModel->getSearchableProducts($storeId, $productIds); }