12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?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'
- ]
- );
- }
- }
|