| Current Path : /home/rtorresani/www/vendor/magento/module-catalog-rule/Block/Adminhtml/Promo/ |
| Current File : //home/rtorresani/www/vendor/magento/module-catalog-rule/Block/Adminhtml/Promo/Catalog.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/**
* Catalog price rules
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\CatalogRule\Block\Adminhtml\Promo;
/**
* @api
* @since 100.0.2
*/
class Catalog extends \Magento\Backend\Block\Widget\Grid\Container
{
/**
* @return void
*/
protected function _construct()
{
$this->_blockGroup = 'Magento_CatalogRule';
$this->_controller = 'adminhtml_promo_catalog';
$this->_headerText = __('Catalog Price Rule');
$this->_addButtonLabel = __('Add New Rule');
parent::_construct();
$this->buttonList->add(
'apply_rules',
[
'label' => __('Apply Rules'),
'onclick' => "location.href='" . $this->getUrl('catalog_rule/*/applyRules') . "'",
'class' => 'apply'
]
);
}
}