Skip to main content
6 events
when toggle format what by license comment
Oct 5, 2022 at 8:26 comment added MTP Casting 1 to int is redundant. Would you mind changing 1 to a constant (en.wikipedia.org/wiki/Magic_number_(programming))? Moreover, you can return the result directly from if clause body. The di.xml config can be placed in etc/adminhtml scope which will remove this plugin from other scopes. Also protected field could be a private because plugins must not be extended (and you should avoid inheritance for cleaner code)
Jul 22, 2022 at 3:27 comment added alan.D with class Magento\Backend\Model\Auth\Session as BackendSession; it only get end check user in backend, not on frontend
Jul 20, 2022 at 12:35 comment added Daniel Ifrim This backendSession is initated on frontend too ? There can be some PHP session issues there ?
Jan 14, 2022 at 7:12 comment added Rahul Singh Perfect Solution, Thanks
Nov 24, 2021 at 4:05 review Late answers
Nov 24, 2021 at 4:06
Nov 24, 2021 at 3:50 history answered alan.D CC BY-SA 4.0