Method | Description | |
---|---|---|
__construct ( Magento\Framework\App\ResourceConnection $resource, Magento\Store\Model\StoreManagerInterface $storeManager, Magento\Framework\EntityManager\MetadataPool $metadataPool, Magento\Catalog\Model\Product\Type $catalogProductType, string $entityType = ProductInterface::class ) | Constructor. | |
loadChildrens ( array $productIds ) : array | Retrieve list of children ids for a product list. |
Method | Description | |
---|---|---|
getEntityTypeId ( ) : string | Get Entity Id used by this indexer | |
getProductEmulator ( string $typeId ) : Magento\Framework\DataObject | Retrieve Product Emulator (Magento Object) by type identifier. | |
getProductTypeInstance ( string $typeId ) : Magento\Catalog\Model\Product\Type\AbstractType | Retrieve product type instance from identifier. |
public __construct ( Magento\Framework\App\ResourceConnection $resource, Magento\Store\Model\StoreManagerInterface $storeManager, Magento\Framework\EntityManager\MetadataPool $metadataPool, Magento\Catalog\Model\Product\Type $catalogProductType, string $entityType = ProductInterface::class ) | ||
$resource | Magento\Framework\App\ResourceConnection | Database adpater. |
$storeManager | Magento\Store\Model\StoreManagerInterface | Store manager. |
$metadataPool | Magento\Framework\EntityManager\MetadataPool | Metadata Pool. |
$catalogProductType | Magento\Catalog\Model\Product\Type | Product type. |
$entityType | string | Product entity type. |
protected getEntityTypeId ( ) : string | ||
return | string |
protected getProductEmulator ( string $typeId ) : Magento\Framework\DataObject | ||
$typeId | string | Type identifier. |
return | Magento\Framework\DataObject |
protected getProductTypeInstance ( string $typeId ) : Magento\Catalog\Model\Product\Type\AbstractType | ||
$typeId | string | Type identifier. |
return | Magento\Catalog\Model\Product\Type\AbstractType |
public loadChildrens ( array $productIds ) : array | ||
$productIds | array | List of parent product ids. |
return | array |