I want to give ability to admin to active or deactive a module for each store.
at previous magento version this option was exist under store -> configuration -> advanced -> advanced menue and we could enable or disable a module per store , but from magento 2.2 this option has been removed and no longer avalable.
according this link for this purpose we have to do some setting manually in our module .
I want to make setting in my module that admin can see the list of stores and by selecting them to enable or disable a module . for example admin wants to enable module be active for store A and B , and deactive for store C .
the list of stores should be dynamic and reads from database and shouldn't be hard code.
I don't have any idea how can I do it .Someone can help me figure out how I can do it ? If you could please point this out, I would be really grateful .