Kaskus

Tech

meetanshiAvatar border
TS
meetanshi
How To Check If The Current Area Is Frontend Or Backend In Magento 2
The versatility of Magento 2 allows the store owners to implement customized features and functionalities. Some of these functionalities can be exclusive to the admin users and some of them may have some limitations for the customers.
How To Check If The Current Area Is Frontend Or Backend In Magento 2
Suppose you are a Magento developer building a new extension that features admin-exclusive functionalities, you may require to check if the current area is frontend or backend in Magento 2.

There are two ways to do that. First one is using the getAreaCode() function in the objectManager, while the other uis using the class method. You can learn both of these methods at https://meetanshi.com/blog/check-if-current-area-is-frontend-or-backend-in-magento-2/

Diubah oleh meetanshi 04-07-2022 11:11
0
132
0
GuestAvatar border
Komentar yang asik ya
GuestAvatar border
Komentar yang asik ya
Komunitas Pilihan