@api
- Since
- 100.0.2
Definition at line 14 of file ProductRepositoryInterface.php.
◆ delete()
Delete product
- Parameters
-
\Magento\Catalog\Api\Data\ProductInterface | $product | |
- Returns
- bool Will returned True if deleted
- Exceptions
-
◆ deleteById()
- Parameters
-
- Returns
- bool Will returned True if deleted
- Exceptions
-
Implemented in ProductRepository.
◆ get()
get |
( |
|
$sku, |
|
|
|
$editMode = false , |
|
|
|
$storeId = null , |
|
|
|
$forceReload = false |
|
) |
| |
Get info about product by product SKU
- Parameters
-
string | $sku | |
bool | $editMode | |
int | null | $storeId | |
bool | $forceReload | |
- Returns
- \Magento\Catalog\Api\Data\ProductInterface
- Exceptions
-
Implemented in ProductRepository.
◆ getById()
getById |
( |
|
$productId, |
|
|
|
$editMode = false , |
|
|
|
$storeId = null , |
|
|
|
$forceReload = false |
|
) |
| |
Get info about product by product id
- Parameters
-
int | $productId | |
bool | $editMode | |
int | null | $storeId | |
bool | $forceReload | |
- Returns
- \Magento\Catalog\Api\Data\ProductInterface
- Exceptions
-
Implemented in ProductRepository.
◆ getList()
Get product list
- Parameters
-
\Magento\Framework\Api\SearchCriteriaInterface | $searchCriteria | |
- Returns
- \Magento\Catalog\Api\Data\ProductSearchResultsInterface
◆ save()
Create product
- Parameters
-
\Magento\Catalog\Api\Data\ProductInterface | $product | |
bool | $saveOptions | |
- Returns
- \Magento\Catalog\Api\Data\ProductInterface
- Exceptions
-
The documentation for this interface was generated from the following file: