File tree Expand file tree Collapse file tree 5 files changed +11
-9
lines changed
LoginAsCustomerFrontendUi
LoginAsCustomerQuote/Plugin/LoginAsCustomerApi Expand file tree Collapse file tree 5 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 7
7
8
8
namespace Magento \LoginAsCustomerAdminUi \Block \Adminhtml ;
9
9
10
- use Magento \Framework \Serialize \Serializer \Json ;
11
- use Magento \Store \Ui \Component \Listing \Column \Store \Options as StoreOptions ;
12
10
use Magento \Backend \Block \Template ;
11
+ use Magento \Framework \Serialize \Serializer \Json ;
13
12
use Magento \LoginAsCustomerApi \Api \ConfigInterface ;
13
+ use Magento \Store \Ui \Component \Listing \Column \Store \Options as StoreOptions ;
14
14
15
15
/**
16
16
* Login confirmation pop-up
@@ -77,15 +77,13 @@ public function getJsLayout()
77
77
}
78
78
79
79
/**
80
- * Render block HTML
81
- *
82
- * @return string
80
+ * @inheritdoc
83
81
*/
84
- protected function _toHtml ()
82
+ public function toHtml ()
85
83
{
86
84
if (!$ this ->config ->isEnabled ()) {
87
85
return '' ;
88
86
}
89
- return parent ::_toHtml ();
87
+ return parent ::toHtml ();
90
88
}
91
89
}
Original file line number Diff line number Diff line change 5
5
"php" : " ~7.3.0||~7.4.0" ,
6
6
"magento/framework" : " *" ,
7
7
"magento/module-login-as-customer-api" : " *" ,
8
+ "magento/module-login-as-customer-frontend-ui" : " *" ,
8
9
"magento/module-backend" : " *" ,
9
10
"magento/module-customer" : " *" ,
10
11
"magento/module-store" : " *"
11
12
},
13
+ "suggest" : {
14
+ "magento/module-login-as-customer" : " *"
15
+ },
12
16
"type" : " magento2-module" ,
13
17
"license" : [
14
18
" OSL-3.0" ,
Original file line number Diff line number Diff line change 17
17
*
18
18
* @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
19
19
*/
20
- class LoginAsCustomerFrontendUi implements SectionSourceInterface
20
+ class LoginAsCustomerUi implements SectionSourceInterface
21
21
{
22
22
/**
23
23
* @var Session
Original file line number Diff line number Diff line change 9
9
<type name =" Magento\Customer\CustomerData\SectionPoolInterface" >
10
10
<arguments >
11
11
<argument name =" sectionSourceMap" xsi : type =" array" >
12
- <item name =" loggedAsCustomer" xsi : type =" string" >Magento\LoginAsCustomerFrontendUi\CustomerData\LoginAsCustomerFrontendUi </item >
12
+ <item name =" loggedAsCustomer" xsi : type =" string" >Magento\LoginAsCustomerFrontendUi\CustomerData\LoginAsCustomerUi </item >
13
13
</argument >
14
14
</arguments >
15
15
</type >
File renamed without changes.
You can’t perform that action at this time.
0 commit comments