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-customer
Block
Adminhtml
Edit
BackButton.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Customer\Block\Adminhtml\Edit
;
7
8
use
Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface
;
9
13
class
BackButton
extends
GenericButton
implements
ButtonProviderInterface
14
{
18
public
function
getButtonData
()
19
{
20
return
[
21
'label'
=>
__
(
'Back'
),
22
'on_click'
=> sprintf(
"location.href = '%s';"
, $this->
getBackUrl
()),
23
'class'
=>
'back'
,
24
'sort_order'
=> 10
25
];
26
}
27
33
public
function
getBackUrl
()
34
{
35
return
$this->
getUrl
(
'*/*/'
);
36
}
37
}
Magento\Customer\Block\Adminhtml\Edit\BackButton\getButtonData
getButtonData()
Definition:
BackButton.php:18
Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface
Definition:
ButtonProviderInterface.php:11
Magento\Customer\Block\Adminhtml\Edit
__
__()
Definition:
__.php:13
Magento\Customer\Block\Adminhtml\Edit\GenericButton\getUrl
getUrl($route='', $params=[])
Definition:
GenericButton.php:61
Magento\Customer\Block\Adminhtml\Edit\BackButton
Definition:
BackButton.php:13
Magento\Customer\Block\Adminhtml\Edit\BackButton\getBackUrl
getBackUrl()
Definition:
BackButton.php:33
Magento\Customer\Block\Adminhtml\Edit\GenericButton
Definition:
GenericButton.php:14