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-url-rewrite
Block
Catalog
Product
Grid.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\UrlRewrite\Block\Catalog\Product
;
7
14
class
Grid
extends
\Magento\Catalog\Block\Adminhtml\Product\Grid
15
{
21
protected
function
_prepareMassaction
()
22
{
23
return
$this;
24
}
25
31
protected
function
_prepareColumns
()
32
{
33
$this->
addColumn
(
34
'entity_id'
,
35
[
36
'header'
=>
__
(
'ID'
),
37
'index'
=>
'entity_id'
,
38
'header_css_class'
=>
'col-id'
,
39
'column_css_class'
=>
'col-id'
40
]
41
);
42
43
$this->
addColumn
(
'name'
, [
'header'
=>
__
(
'Name'
),
'index'
=>
'name'
]);
44
45
$this->
addColumn
(
'sku'
, [
'header'
=>
__
(
'SKU'
),
'width'
=> 80,
'index'
=>
'sku'
]);
46
$this->
addColumn
(
47
'status'
,
48
[
49
'header'
=>
__
(
'Status'
),
50
'width'
=> 50,
51
'index'
=>
'status'
,
52
'type'
=>
'options'
,
53
'options'
=> $this->_status->getOptionArray()
54
]
55
);
56
return
$this;
57
}
58
64
public
function
getGridUrl
()
65
{
66
return
$this->
getUrl
(
'adminhtml/*/productGrid'
, [
'_current'
=>
true
]);
67
}
68
75
public
function
getRowUrl
(
$row
)
76
{
77
return
$this->
getUrl
(
'adminhtml/*/edit'
, [
'product'
=>
$row
->getId()]) .
'category'
;
78
}
79
}
Magento\UrlRewrite\Block\Catalog\Product\Grid\_prepareColumns
_prepareColumns()
Definition:
Grid.php:31
Magento\Backend\Block\Widget\Grid\Extended\addColumn
addColumn($columnId, $column)
Definition:
Extended.php:287
__
__()
Definition:
__.php:13
Magento\UrlRewrite\Block\Catalog\Product\Grid\_prepareMassaction
_prepareMassaction()
Definition:
Grid.php:21
Magento\UrlRewrite\Block\Catalog\Product
Definition:
EditTest.php:6
Magento\Framework\View\Element\AbstractBlock\getUrl
getUrl($route='', $params=[])
Definition:
AbstractBlock.php:773
Magento\UrlRewrite\Block\Catalog\Product\Grid\getGridUrl
getGridUrl()
Definition:
Grid.php:64
Magento\UrlRewrite\Block\Catalog\Product\Grid\getRowUrl
getRowUrl($row)
Definition:
Grid.php:75
Magento\UrlRewrite\Block\Catalog\Product\Grid
Definition:
Grid.php:14
$row
$row
Definition:
cart_rule_free_shipping.php:12