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
ResetPasswordButton.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
ResetPasswordButton
extends
GenericButton
implements
ButtonProviderInterface
14
{
20
public
function
getButtonData
()
21
{
22
$customerId
= $this->
getCustomerId
();
23
$data
= [];
24
if
(
$customerId
) {
25
$data
= [
26
'label'
=>
__
(
'Reset Password'
),
27
'class'
=>
'reset reset-password'
,
28
'on_click'
=> sprintf(
"location.href = '%s';"
, $this->
getResetPasswordUrl
()),
29
'sort_order'
=> 60,
30
];
31
}
32
return
$data
;
33
}
34
40
public
function
getResetPasswordUrl
()
41
{
42
return
$this->
getUrl
(
'customer/index/resetPassword'
, [
'customer_id'
=> $this->
getCustomerId
()]);
43
}
44
}
Magento\Customer\Block\Adminhtml\Edit\ResetPasswordButton\getButtonData
getButtonData()
Definition:
ResetPasswordButton.php:20
Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface
Definition:
ButtonProviderInterface.php:11
Magento\Customer\Block\Adminhtml\Edit\GenericButton\getCustomerId
getCustomerId()
Definition:
GenericButton.php:49
Magento\Customer\Block\Adminhtml\Edit
Magento\Customer\Block\Adminhtml\Edit\ResetPasswordButton
Definition:
ResetPasswordButton.php:13
__
__()
Definition:
__.php:13
Magento\Customer\Block\Adminhtml\Edit\GenericButton\getUrl
getUrl($route='', $params=[])
Definition:
GenericButton.php:61
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
$customerId
$customerId
Definition:
quote_with_customer.php:16
Magento\Customer\Block\Adminhtml\Edit\GenericButton
Definition:
GenericButton.php:14
Magento\Customer\Block\Adminhtml\Edit\ResetPasswordButton\getResetPasswordUrl
getResetPasswordUrl()
Definition:
ResetPasswordButton.php:40