1

I have come through an interesting point while reading the Magento 2 official dev docs.

You can enable or disable an area within a module.

Below is the official link of devdocs article,

https://devdocs.magento.com/guides/v2.3/architecture/archi_perspectives/components/modules/mod_and_areas.html

There it's mentioned. Let's assume if we have adminhtml and frontend area within a module in Magento 2, then how could we disable a particular area?

Thanks

-1

Magento does it out of the box you can achieve this by etc/adminhtml/di.xml for adminhtml same way for frontend.

Reference URL:

https://devdocs.magento.com/guides/v2.3/extension-dev-guide/build/di-xml-file.html

|improve this answer|||||
  • 1
    While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review – Mohit Kumar Arora Feb 18 at 6:55
  • @MohitKumarArora I have clearly mentioned that it can be achieved by etc/adminhtml/di.xml & etc/frontend/di.xml you can manage & link is for reference how we can use di.xml – Yo Yo Roshan Feb 18 at 9:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.