In order to retrieve version of any extension/module in Magento 2, you can use following code snippet.
1 2 3 4 5 | $versionInfo = $this->_objectManager->get('Magento\Framework\Module\ModuleList')->getOne('Wallet_Version'); echo "<pre>"; print_r($versionInfo); echo "</pre>"; |
Here, Wallet is vendor name and Version is module name. Team HiddenTechiesWrite an article about ecommerce that help people to grow their ecommerce business. You’ll find best ecommerce guide, news, tips & more!
Recent Comments