File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed
view/adminhtml/templates/user Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,12 @@ protected function _construct()
77
77
}
78
78
79
79
/**
80
+ * Returns message that is displayed for admin when he deleted user from the system.
81
+ * To see this message admin must do the following:
82
+ * - open user for edition;
83
+ * - fill current password in section "Current User Identity Verification";
84
+ * - click "Delete User" at top left part of the page;
85
+ *
80
86
* @return \Magento\Framework\Phrase
81
87
*/
82
88
public function getDeleteMessage ()
@@ -85,7 +91,9 @@ public function getDeleteMessage()
85
91
}
86
92
87
93
/**
88
- * Returns user deletion url
94
+ * Returns url that for user deletion.
95
+ * The following action is executed if admin navigates to this url
96
+ * Magento\User\Controller\Adminhtml\User\Delete::execute
89
97
*
90
98
* @return string
91
99
*/
@@ -95,6 +103,9 @@ public function getDeleteUrl()
95
103
}
96
104
97
105
/**
106
+ * Method is used to get id of user that admin edits.
107
+ * It can be used to determine either admin opens page for creation or edition of already created user
108
+ *
98
109
* @return int
99
110
*/
100
111
public function getObjectId ()
Original file line number Diff line number Diff line change @@ -76,9 +76,9 @@ require([
76
76
{
77
77
"[data-role=delete-user]" : {
78
78
"deleteUserAccount" : {
79
- "message": "<?php /* @escapeNotVerified */ echo $ editBlock ->getDeleteMessage (); ?> ",
80
- "url": "<?php /* @escapeNotVerified */ echo $ editBlock ->getDeleteUrl (); ?> ",
81
- "objId": "<?php /* @escapeNotVerified */ echo $ editBlock ->getObjectId (); ?> "
79
+ "message": "<?php echo $ editBlock ->escapeHtml ( $ editBlock -> getDeleteMessage ()) ?> ",
80
+ "url": "<?php /* @noEscape */ echo $ editBlock ->getDeleteUrl (); ?> ",
81
+ "objId": "<?php echo $ editBlock ->escapeHtml ( $ editBlock -> getObjectId ()) ?> "
82
82
}
83
83
}
84
84
}
You can’t perform that action at this time.
0 commit comments