14 class Grid extends \Magento\Catalog\Block\Adminhtml\Product\Grid
40 \
Magento\Backend\Helper\Data $backendHelper,
51 $this->_websitesFactory = $websitesFactory;
74 $this->setRowClickCallback(
'review.gridRowClick');
75 $this->setUseAjax(
true);
89 'index' =>
'entity_id',
90 'header_css_class' =>
'col-id',
91 'column_css_class' =>
'col-id' 95 $this->
addColumn(
'name', [
'header' =>
__(
'Name'),
'index' =>
'name']);
98 $this->
addColumn(
'custom_name', [
'header' =>
__(
'Product Store Name'),
'index' =>
'custom_name']);
101 $this->
addColumn(
'sku', [
'header' =>
__(
'SKU'),
'index' =>
'sku']);
103 $this->
addColumn(
'price', [
'header' =>
__(
'Price'),
'type' =>
'currency',
'index' =>
'price']);
107 [
'header' =>
__(
'Quantity'),
'type' =>
'number',
'index' =>
'qty']
113 'header' =>
__(
'Status'),
116 'source' => \
Magento\Catalog\Model\
Product\Attribute\Source\Status::class,
117 'options' => $this->_status->getOptionArray()
124 if (!$this->_storeManager->isSingleStoreMode()) {
128 'header' =>
__(
'Websites'),
130 'index' =>
'websites',
132 'options' => $this->_websitesFactory->create()->toOptionHash()
145 return $this->
getUrl(
'review/product/productGrid', [
'_current' =>
true]);
156 return $this->
getUrl(
'review/product/jsonProductInfo', [
'id' =>
$row->getId()]);
__construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Store\Model\WebsiteFactory $websiteFactory, \Magento\Eav\Model\ResourceModel\Entity\Attribute\Set\CollectionFactory $setsFactory, \Magento\Catalog\Model\ProductFactory $productFactory, \Magento\Catalog\Model\Product\Type $type, \Magento\Catalog\Model\Product\Attribute\Source\Status $status, \Magento\Catalog\Model\Product\Visibility $visibility, \Magento\Framework\Module\Manager $moduleManager, \Magento\Store\Model\ResourceModel\Website\CollectionFactory $websitesFactory, array $data=[])
getUrl($route='', $params=[])