Which two methods will load the product model by ID as specified in the URL?
You have created a module controller that responds to the following URL: /mycompany/product/load/
id/123.
Which two methods will load the product model by ID as specified in the URL? (Choose two.)
A . MagentoCatalogModelResourceModelProduct::load($productModel, $id)
B . MagentoCatalogModelResourceModelProductCollection::load()->fetchById($id)
C . MagentoCatalogModelResourceModelProductCollection::fetchItemById($id)
D . MagentoCatalogApiProductRepositoryInterface::getById($id)
Answer: BD
Explanation:
Reference: https://magento.stackexchange.com/questions/94851/magento2-how-to-load-product-by-id
Latest Magento 2 Certified Associate Developer Dumps Valid Version with 103 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Subscribe
Login
0 Comments
Inline Feedbacks
View all comments