Instagram

About Me

Photo Profile
Meetanshi Architecture Designer

Meetanshi is found based on providing the best Magento Extensions and Customized eCommerce Business Solutions perfected to the users’ needs. Our Happy users make us Happy. Complete satisfaction to our clients is what drives and motivates us to work hard. Read More

Tuesday, April 26, 2022

How to Throw Exception on Magento 2 Admin Save Configuration


Suppose you are developing a custom Magento 2 module that requires specific libraries to function. If specific libraries or resources are not present, the module may not work properly. You can prevent such scenarios by alerting the admin during the module configuration part by throwing an exception and preventing the admin from saving it.

 

You can throw exception on Magento 2 admin save configuration by tweaking some codes in the resources.

 

Read complete programmatic method to prevent admin from saving configuration here: https://meetanshi.com/blog/throw-exception-on-magento-2-admin-save-configuration/


No comments:
Write comments


Get more of our update !