Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (CollectionFactory $childCollectionFactory, ProductFactory $productFactory, SearchCriteriaBuilder $searchCriteriaBuilder, DataProvider $productDataProvider, MetadataPool $metadataPool) | |
addParentId (int $id) | |
addEavAttributes (array $attributeCodes) | |
getChildProductsByParentId (int $id) | |
Collection for fetching configurable child product data.
Definition at line 22 of file Collection.php.
__construct | ( | CollectionFactory | $childCollectionFactory, |
ProductFactory | $productFactory, | ||
SearchCriteriaBuilder | $searchCriteriaBuilder, | ||
DataProvider | $productDataProvider, | ||
MetadataPool | $metadataPool | ||
) |
CollectionFactory | $childCollectionFactory | |
ProductFactory | $productFactory | |
SearchCriteriaBuilder | $searchCriteriaBuilder | |
DataProvider | $productDataProvider | |
MetadataPool | $metadataPool |
Definition at line 71 of file Collection.php.
addEavAttributes | ( | array | $attributeCodes | ) |
Add attributes to collection filter
array | $attributeCodes |
Definition at line 107 of file Collection.php.
addParentId | ( | int | $id | ) |
Add parent Id to collection filter
int | $id |
Definition at line 91 of file Collection.php.
getChildProductsByParentId | ( | int | $id | ) |
Retrieve child products from for passed in parent id.
int | $id |
Definition at line 118 of file Collection.php.