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.