According to the Magento 2 docs: https://devdocs.magento.com/guides/v2.2/config-guide/config/disable-module-output.html
<advanced> <modules_disable_output> <Magento_Newsletter>1</Magento_Newsletter> </modules_disable_output> </advanced>
It is possible to completely disable a module's output, essentially disabling the module without actually doing it.
Is it possible to do this conditionally? For example,
if [config is true] disable all output. I only need it for my own module, it doesn't have to work for other modules.