Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-catalog
Ui
DataProvider
Product
Listing
Collector
AdditionalInfo.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Catalog\Ui\DataProvider\Product\Listing\Collector
;
7
8
use
Magento\Catalog\Api\Data\ProductInterface
;
9
use
Magento\Catalog\Api\Data\ProductRenderInterface
;
10
use
Magento\Catalog\Ui\DataProvider\Product\ProductRenderCollectorInterface
;
11
15
class
AdditionalInfo
implements
ProductRenderCollectorInterface
16
{
20
public
function
collect
(
ProductInterface
$product
,
ProductRenderInterface
$productRender)
21
{
22
$productRender->
setIsSalable
(
$product
->isSalable());
23
$productRender->
setType
(
$product
->getTypeId());
24
$productRender->
setName
(
$product
->getName());
25
$productRender->
setId
(
$product
->getId());
26
}
27
}
Magento\Catalog\Ui\DataProvider\Product\ProductRenderCollectorInterface
Definition:
ProductRenderCollectorInterface.php:17
Magento\Catalog\Ui\DataProvider\Product\Listing\Collector
Definition:
AdditionalInfo.php:6
Magento\Catalog\Api\Data\ProductRenderInterface\setId
setId($id)
Magento\Catalog\Ui\DataProvider\Product\Listing\Collector\AdditionalInfo
Definition:
AdditionalInfo.php:15
Magento\Catalog\Ui\DataProvider\Product\Listing\Collector\AdditionalInfo\collect
collect(ProductInterface $product, ProductRenderInterface $productRender)
Definition:
AdditionalInfo.php:20
Magento\Catalog\Api\Data\ProductRenderInterface\setIsSalable
setIsSalable($isSalable)
Magento\Catalog\Api\Data\ProductRenderInterface\setName
setName($name)
Magento\Catalog\Api\Data\ProductRenderInterface
Definition:
ProductRenderInterface.php:20
$product
$product
Definition:
bundle_product_with_not_visible_children.php:22
Magento\Catalog\Api\Data\ProductRenderInterface\setType
setType($productType)
Magento\Catalog\Api\Data\ProductInterface
Definition:
ProductInterface.php:14