|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct (\Magento\Catalog\Api\ProductRepositoryInterface $productRepository, ImageContentValidatorInterface $contentValidator) | |
| update ($sku, ProductAttributeMediaGalleryEntryInterface $entry) | |
| remove ($sku, $entryId) | |
| get ($sku, $entryId) | |
Public Member Functions inherited from ProductAttributeMediaGalleryManagementInterface | |
| create ( $sku, \Magento\Catalog\Api\Data\ProductAttributeMediaGalleryEntryInterface $entry) | |
| update ( $sku, \Magento\Catalog\Api\Data\ProductAttributeMediaGalleryEntryInterface $entry) | |
| getList ($sku) | |
Protected Attributes | |
| $productRepository | |
| $contentValidator | |
Class GalleryManagement
Provides implementation of api interface ProductAttributeMediaGalleryManagementInterface
@SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 22 of file GalleryManagement.php.
| __construct | ( | \Magento\Catalog\Api\ProductRepositoryInterface | $productRepository, |
| ImageContentValidatorInterface | $contentValidator | ||
| ) |
| \Magento\Catalog\Api\ProductRepositoryInterface | $productRepository | |
| ImageContentValidatorInterface | $contentValidator | @SuppressWarnings(PHPMD.ExcessiveParameterList) |
Definition at line 40 of file GalleryManagement.php.
| get | ( | $sku, | |
| $entryId | |||
| ) |
Return information about gallery entry
| string | $sku | |
| int | $entryId |
Implements ProductAttributeMediaGalleryManagementInterface.
Definition at line 162 of file GalleryManagement.php.
| remove | ( | $sku, | |
| $entryId | |||
| ) |
Remove gallery entry
| string | $sku | |
| int | $entryId |
Implements ProductAttributeMediaGalleryManagementInterface.
Definition at line 132 of file GalleryManagement.php.
| update | ( | $sku, | |
| ProductAttributeMediaGalleryEntryInterface | $entry | ||
| ) |
Definition at line 91 of file GalleryManagement.php.
|
protected |
Definition at line 32 of file GalleryManagement.php.
|
protected |
Definition at line 27 of file GalleryManagement.php.