How to check if a Magento 2 module has been successfully installed
To check if your Magento 2 module has been successfully installed, use the following code:
1 |
$this->_moduleManager->isEnabled('Vendor_Module') |
This is the most convenient method among available now.
More tips from Magento 2 Developer’s Cookbook