Skip to content

Adding a version to a module/extension in Magento 2 admin

I want to add Installed version of current extension/module in admin menu like below screenshot.
https://i.imgur.com/0P7QZSA.png

Note: For creating menus in m2 admin, I am using following code from /etc/adminhtml/menu.xml file.

 <?xml version="1.0"?>
    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
        <menu>
            <add
                id="My_Module::main"
                title="My Module"
                module="My_Module"
                sortOrder="999"
                parent="Magento_Backend::stores"
                resource="Magento_Backend::stores"
            />
            <add
                id="My_Module::storeCredentials"
                title="Store Credentials"
                module="My_Module"
                sortOrder="10"
                parent="My_Module::main"
                action="adminhtml/system_config/edit/section/My_Module_credentials/store/1/"
                resource="My_Module::main"
            />
            <add
        </menu>
    </config>