I am working on creating a base module for all other modules under one namespace.
I want to show a list of all modules (with their version and their status as enabled or disabled).
I have injected dependency of
\Magento\Framework\Module\ModuleListInterface in my block file, but I am not getting the module in the list if I disable it.
I have tried getAll() and getNames() functions. No function is returning disabled module names in the list.
Previously it was possible to get the list of all modules because there was a section in admin panel (Advanced), where all modules were listed with respective module output.
Kindly help me to get the list of all modules.