File tree Expand file tree Collapse file tree 10 files changed +15
-15
lines changed
Customer/Component/Control Expand file tree Collapse file tree 10 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 7
7
-->
8
8
<schema xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
9
9
xsi : noNamespaceSchemaLocation =" urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd" >
10
- <table name =" login_as_customer" resource =" default" engine =" innodb" comment =" Magento Login As Customer Table" >
10
+ <table name =" login_as_customer" resource =" default" engine =" innodb" comment =" Magento Login as Customer Table" >
11
11
<column xsi : type =" varchar" name =" secret" nullable =" false" length =" 64" comment =" Login Secret" />
12
12
<column xsi : type =" int" name =" customer_id" nullable =" false" comment =" Customer ID" />
13
13
<column xsi : type =" int" name =" admin_id" nullable =" false" comment =" Admin ID" />
Original file line number Diff line number Diff line change 15
15
interface ConfigInterface
16
16
{
17
17
/**
18
- * Check if Login As Customer extension is enabled
18
+ * Check if Login as Customer extension is enabled
19
19
*
20
20
* @return bool
21
21
*/
Original file line number Diff line number Diff line change 13
13
use Magento \Framework \Controller \ResultInterface ;
14
14
15
15
/**
16
- * Login As Customer log grid controller.
16
+ * Login as Customer log grid controller.
17
17
*/
18
18
class Index extends Action implements HttpGetActionInterface
19
19
{
Original file line number Diff line number Diff line change 1
1
# Magento_LoginAsCustomerLog module
2
2
3
- The Magento_LoginAsCustomerLog module provides log for Login As Customer functionality
3
+ The Magento_LoginAsCustomerLog module provides log for Login as Customer functionality
Original file line number Diff line number Diff line change 9
9
xsi : noNamespaceSchemaLocation =" urn:magento:module:Magento_Backend:etc/menu.xsd" >
10
10
<menu >
11
11
<add id =" Magento_LoginAsCustomerLog::login_log"
12
- title =" Login As Customer Log"
12
+ title =" Login as Customer Log"
13
13
module =" Magento_LoginAsCustomerLog"
14
14
parent =" Magento_Customer::customer"
15
15
sortOrder =" 40"
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ public function execute(): ResultInterface
130
130
$ resultRedirect = $ this ->resultFactory ->create (ResultFactory::TYPE_REDIRECT );
131
131
132
132
if (!$ this ->config ->isEnabled ()) {
133
- $ this ->messageManager ->addErrorMessage (__ ('Login As Customer is disabled. ' ));
133
+ $ this ->messageManager ->addErrorMessage (__ ('Login as Customer is disabled. ' ));
134
134
return $ resultRedirect ->setPath ('customer/index/index ' );
135
135
}
136
136
Original file line number Diff line number Diff line change 21
21
use Psr \Log \LoggerInterface ;
22
22
23
23
/**
24
- * Login As Customer storefront login action
24
+ * Login as Customer storefront login action
25
25
*/
26
26
class Index implements HttpGetActionInterface
27
27
{
@@ -88,7 +88,7 @@ public function __construct(
88
88
}
89
89
90
90
/**
91
- * Login As Customer storefront login
91
+ * Login as Customer storefront login
92
92
*
93
93
* @return ResultInterface
94
94
*/
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ public function __construct(
51
51
}
52
52
53
53
/**
54
- * Add Login As Customer button.
54
+ * Add Login as Customer button.
55
55
*
56
56
* @param \Magento\Backend\Block\Widget\Button\Toolbar $subject
57
57
* @param \Magento\Framework\View\Element\AbstractBlock $context
@@ -87,7 +87,7 @@ public function beforePushButtons(
87
87
$ buttonList ->add (
88
88
'guest_to_customer ' ,
89
89
[
90
- 'label ' => __ ('Login As Customer ' ),
90
+ 'label ' => __ ('Login as Customer ' ),
91
91
'onclick ' => 'window.lacConfirmationPopup(" '
92
92
. $ this ->escaper ->escapeHtml ($ this ->escaper ->escapeJs ($ buttonUrl ))
93
93
. '") ' ,
Original file line number Diff line number Diff line change 16
16
use Magento \LoginAsCustomerApi \Api \ConfigInterface ;
17
17
18
18
/**
19
- * Login As Customer button UI component.
19
+ * Login as Customer button UI component.
20
20
*/
21
21
class LoginAsCustomerButton extends GenericButton implements ButtonProviderInterface
22
22
{
@@ -64,7 +64,7 @@ public function getButtonData(): array
64
64
$ isEnabled = $ this ->config ->isEnabled ();
65
65
if ($ isAllowed && $ isEnabled ) {
66
66
$ data = [
67
- 'label ' => __ ('Login As Customer ' ),
67
+ 'label ' => __ ('Login as Customer ' ),
68
68
'class ' => 'login login-button ' ,
69
69
'on_click ' => 'window.lacConfirmationPopup(" '
70
70
. $ this ->escaper ->escapeHtml ($ this ->escaper ->escapeJs ($ this ->getLoginUrl ()))
@@ -77,7 +77,7 @@ public function getButtonData(): array
77
77
}
78
78
79
79
/**
80
- * Get Login As Customer login url.
80
+ * Get Login as Customer login url.
81
81
*
82
82
* @return string
83
83
*/
Original file line number Diff line number Diff line change 10
10
use Magento \Framework \View \Element \UiComponent \Control \ButtonProviderInterface ;
11
11
12
12
/**
13
- * Login As Customer button UI component.
13
+ * Login as Customer button UI component.
14
14
*/
15
15
class LoginAsCustomerButton implements ButtonProviderInterface
16
16
{
@@ -22,7 +22,7 @@ class LoginAsCustomerButton implements ButtonProviderInterface
22
22
public function getButtonData (): array
23
23
{
24
24
return [
25
- 'label ' => __ ('Login As Customer ' ),
25
+ 'label ' => __ ('Login as Customer ' ),
26
26
'class ' => 'save primary ' ,
27
27
'data_attribute ' => [
28
28
'mage-init ' => ['button ' => ['event ' => 'save ' ]],
You can’t perform that action at this time.
0 commit comments