How-to-Add-a-Custom-Admin-System-Message-in-Magento-2

Magento uses notification messages to improve user experience. You can easily add any message using the Message Manager to inform users about the success or failure of an action.

In this blog post we will cover one type of the notifications – Admin System Messages. This type of notification will appear in a pop-up block and remain in the admin panel as a reminder for the admin user until a specific condition is met. These notifications can vary from messages about invalidated indexes to vulnerability issues. Adding custom system messages can be beneficial, and we’ll show you how to do it in a few simple steps.

From time to time, we have to manipulate with the messages in Magento. It is really easy if you just change the message text – in this case, you can simply open a corresponding translation file in the current package “locale” directory or “app/locale” with your favorite text editor and change an appropriate message without editing any template files.