We are going to build a very simple extension in Magento 2. When finished, the extension 's output will say…