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
Store
Store.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Backend\Block\System\Store
;
7
16
class
Store
extends
\Magento\Backend\Block\Widget\Grid\Container
17
{
21
protected
$_blockGroup
=
'Magento_Backend'
;
22
26
protected
function
_construct
()
27
{
28
$this->_blockGroup =
'Magento_Backend'
;
29
$this->_controller =
'system_store'
;
30
$this->_headerText =
__
(
'Stores'
);
31
parent::_construct();
32
33
/* Update default add button to add website button */
34
$this->buttonList->update(
'add'
,
'label'
,
__
(
'Create Website'
));
35
$this->buttonList->update(
'add'
,
'onclick'
,
"setLocation('"
. $this->
getUrl
(
'adminhtml/*/newWebsite'
) .
"')"
);
36
37
/* Add Store Group button */
38
$this->buttonList->add(
39
'add_group'
,
40
[
41
'label'
=>
__
(
'Create Store'
),
42
'onclick'
=>
'setLocation(\''
. $this->
getUrl
(
'adminhtml/*/newGroup'
) .
'\'
)
',
43
'
class
' => '
add add-store
'
44
],
45
1
46
);
47
48
/* Add Store button */
49
$this->buttonList->add(
50
'
add_store
',
51
[
52
'
label
' => __('
Create
Store
View
'),
53
'
onclick
' => '
setLocation(\
''
. $this->
getUrl
(
'adminhtml/*/newStore'
) .
'\'
)
',
54
'
class
' => '
add add-store-view
'
55
]
56
);
57
}
58
}
Magento\Backend\Block\System\Store\Store\$_blockGroup
$_blockGroup
Definition:
Store.php:21
__
__()
Definition:
__.php:13
Magento\Framework\View\Element\AbstractBlock\getUrl
getUrl($route='', $params=[])
Definition:
AbstractBlock.php:773
Magento\Backend\Block\System\Store\Store\_construct
_construct()
Definition:
Store.php:26
Magento\Backend\Block\System\Store
Definition:
DeleteTest.php:6
Magento\Backend\Block\System\Store\Store
Definition:
Store.php:16