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-backend
Block
System
Cache
Edit.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Backend\Block\System\Cache
;
7
13
class
Edit
extends
\Magento\Backend\Block\Widget
14
{
18
protected
$_template
=
'Magento_Backend::system/cache/edit.phtml'
;
19
23
protected
function
_construct
()
24
{
25
parent::_construct();
26
27
$this->setTitle(
'Cache Management'
);
28
}
29
33
protected
function
_prepareLayout
()
34
{
35
$this->
addChild
(
36
'save_button'
,
37
\
Magento
\Backend\Block\
Widget
\Button::class,
38
[
39
'label'
=>
__
(
'Save Cache Settings'
),
40
'class'
=>
'save'
,
41
'data_attribute'
=> [
42
'mage-init'
=> [
'button'
=> [
'event'
=>
'save'
,
'target'
=>
'#config-edit-form'
]],
43
]
44
]
45
);
46
return
parent::_prepareLayout();
47
}
48
52
public
function
getSaveButtonHtml
()
53
{
54
return
$this->
getChildHtml
(
'save_button'
);
55
}
56
60
public
function
getSaveUrl
()
61
{
62
return
$this->
getUrl
(
'adminhtml/*/save'
, [
'_current'
=>
true
]);
63
}
64
68
public
function
initForm
()
69
{
70
$this->
setChild
(
71
'form'
,
72
$this->
getLayout
()->createBlock(\
Magento
\Backend\Block\System\
Cache
\Form::class)->
initForm
()
73
);
74
return
$this;
75
}
76
82
public
function
getCatalogData
()
83
{
84
return
[
85
'refresh_catalog_rewrites'
=> [
86
'label'
=>
__
(
'Catalog Rewrites'
),
87
'buttons'
=> [[
'name'
=>
'refresh_catalog_rewrites'
,
'action'
=>
__
(
'Refresh'
)]],
88
],
89
'clear_images_cache'
=> [
90
'label'
=>
__
(
'Images Cache'
),
91
'buttons'
=> [[
'name'
=>
'clear_images_cache'
,
'action'
=>
__
(
'Clear'
)]],
92
],
93
'rebuild_search_index'
=> [
94
'label'
=>
__
(
'Search Index'
),
95
'buttons'
=> [[
'name'
=>
'rebuild_search_index'
,
'action'
=>
__
(
'Rebuild'
)]],
96
],
97
'rebuild_inventory_stock_status'
=> [
98
'label'
=>
__
(
'Inventory Stock Status'
),
99
'buttons'
=> [[
'name'
=>
'rebuild_inventory_stock_status'
,
'action'
=>
__
(
'Refresh'
)]],
100
],
101
'rebuild_catalog_index'
=> [
102
'label'
=>
__
(
'Rebuild Catalog Index'
),
103
'buttons'
=> [[
'name'
=>
'rebuild_catalog_index'
,
'action'
=>
__
(
'Rebuild'
)]],
104
],
105
'rebuild_flat_catalog_category'
=> [
106
'label'
=>
__
(
'Rebuild Flat Catalog Category'
),
107
'buttons'
=> [[
'name'
=>
'rebuild_flat_catalog_category'
,
'action'
=>
__
(
'Rebuild'
)]],
108
],
109
'rebuild_flat_catalog_product'
=> [
110
'label'
=>
__
(
'Rebuild Flat Catalog Product'
),
111
'buttons'
=> [[
'name'
=>
'rebuild_flat_catalog_product'
,
'action'
=>
__
(
'Rebuild'
)]],
112
]
113
];
114
}
115
}
Magento\Backend\Block\Cache
Definition:
Cache.php:12
Magento\Backend\Block\Widget
Definition:
Widget.php:15
Magento\Backend\Block\System\Cache\Edit\getCatalogData
getCatalogData()
Definition:
Edit.php:82
Magento\Backend\Block\System\Cache\Edit\initForm
initForm()
Definition:
Edit.php:68
Magento\Backend\Block\System\Cache
Definition:
Edit.php:6
Magento\Framework\View\Element\AbstractBlock\addChild
addChild($alias, $block, $data=[])
Definition:
AbstractBlock.php:385
Magento\Backend\Block\System\Cache\Edit\getSaveButtonHtml
getSaveButtonHtml()
Definition:
Edit.php:52
__
__()
Definition:
__.php:13
Magento\Framework\View\Element\AbstractBlock\getUrl
getUrl($route='', $params=[])
Definition:
AbstractBlock.php:773
Magento\Framework\View\Element\AbstractBlock\getLayout
getLayout()
Definition:
AbstractBlock.php:295
Magento
Magento\Backend\Block\System\Cache\Edit\_prepareLayout
_prepareLayout()
Definition:
Edit.php:33
Magento\Backend\Block\System\Cache\Edit\_construct
_construct()
Definition:
Edit.php:23
Magento\Backend\Block\System\Cache\Edit\$_template
$_template
Definition:
Edit.php:18
Magento\Backend\Block\System\Cache\Edit\getSaveUrl
getSaveUrl()
Definition:
Edit.php:60
Magento\Framework\View\Element\AbstractBlock\getChildHtml
getChildHtml($alias='', $useCache=true)
Definition:
AbstractBlock.php:497
Magento\Framework\View\Element\AbstractBlock\setChild
setChild($alias, $block)
Definition:
AbstractBlock.php:358
Magento\Backend\Block\System\Cache\Edit
Definition:
Edit.php:13