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
Edit
SaveAndApplyButton.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\CatalogRule\Block\Adminhtml\Edit
;
8
9
use
Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface
;
10
11
class
SaveAndApplyButton
extends
GenericButton
implements
ButtonProviderInterface
12
{
17
public
function
getButtonData
()
18
{
19
$data
= [];
20
if
($this->
canRender
(
'save_apply'
)) {
21
$data
= [
22
'label'
=>
__
(
'Save and Apply'
),
23
'class'
=>
'save'
,
24
'on_click'
=>
''
,
25
'sort_order'
=> 80,
26
'data_attribute'
=> [
27
'mage-init'
=> [
28
'Magento_Ui/js/form/button-adapter'
=> [
29
'actions'
=> [
30
[
31
'targetName'
=>
'catalog_rule_form.catalog_rule_form'
,
32
'actionName'
=>
'save'
,
33
'params'
=> [
34
true
,
35
[
'auto_apply'
=> 1],
36
]
37
]
38
]
39
]
40
],
41
42
]
43
];
44
}
45
return
$data
;
46
}
47
}
Magento\CatalogRule\Block\Adminhtml\Edit
Definition:
DeleteButton.php:6
Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface
Definition:
ButtonProviderInterface.php:11
Magento\CatalogRule\Block\Adminhtml\Edit\GenericButton
Definition:
GenericButton.php:11
__
__()
Definition:
__.php:13
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\CatalogRule\Block\Adminhtml\Edit\SaveAndApplyButton\getButtonData
getButtonData()
Definition:
SaveAndApplyButton.php:17
Magento\CatalogRule\Block\Adminhtml\Edit\GenericButton\canRender
canRender($name)
Definition:
GenericButton.php:70
Magento\CatalogRule\Block\Adminhtml\Edit\SaveAndApplyButton
Definition:
SaveAndApplyButton.php:11