Magento 2, You can show Success and Error Message Using Interface Magento\Framework\Message\ManagerInterface.
You can display success message Using addSuccessMessage( ) and display error message using addErrorMessage( ) function.
addError( ), addSuccess( ), addWarning( ) and addNotice( ) methods are deprecated.
Continue reading “Display success and error messages using ManagerInterface Magento 2”