I want to display a backend admin notification

Example:Your module Test_Product installed successfully!

In the yellow bar after my custom module Test_Product will be installed successfully in Magento instance via zip/composer.

So how can I achieve this functionality?

1 Answer 1


This is the responsible class: Magento\Framework\Notification\MessageList

You can check this tutorial for a complete example: https://www.atwix.com/magento-2/add-custom-admin-system-message/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.