Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Catalog.php
Go to the documentation of this file.
1 <?php
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