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