Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ResetPasswordButton.php
Go to the documentation of this file.
1 <?php
7 
9 
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 }
__()
Definition: __.php:13