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-rule
Block
Adminhtml
Promo
Catalog.php
Go to the documentation of this file.
1
<?php
12
namespace
Magento\CatalogRule\Block\Adminhtml\Promo
;
13
18
class
Catalog
extends
\Magento\Backend\Block\Widget\Grid\Container
19
{
23
protected
function
_construct
()
24
{
25
$this->_blockGroup =
'Magento_CatalogRule'
;
26
$this->_controller =
'adminhtml_promo_catalog'
;
27
$this->_headerText =
__
(
'Catalog Price Rule'
);
28
$this->_addButtonLabel =
__
(
'Add New Rule'
);
29
parent::_construct();
30
31
$this->buttonList->add(
32
'apply_rules'
,
33
[
34
'label'
=>
__
(
'Apply Rules'
),
35
'onclick'
=>
"location.href='"
. $this->
getUrl
(
'catalog_rule/*/applyRules'
) .
"'"
,
36
'class'
=>
'apply'
37
]
38
);
39
}
40
}
__
__()
Definition:
__.php:13
Magento\CatalogRule\Block\Adminhtml\Promo
Magento\Framework\View\Element\AbstractBlock\getUrl
getUrl($route='', $params=[])
Definition:
AbstractBlock.php:773
Magento\CatalogRule\Block\Adminhtml\Promo\Catalog\_construct
_construct()
Definition:
Catalog.php:23
Magento\CatalogRule\Block\Adminhtml\Promo\Catalog
Definition:
Catalog.php:18