cancel
Showing results for 
Search instead for 
Did you mean: 

Produce exhaustive list of default M2 page messages

Produce exhaustive list of default M2 page messages

I would like to have a full list of frontend page messages that Magento generates out of the box. For example, Magento displays a success message when a product is added to cart and another when someone subscribes to a newsletter. I would like to know all the things that trigger these messages.

2 REPLIES 2

Re: Produce exhaustive list of default M2 page messages

Hi @jeremyllama 

 

You can check all available messages in Magento, Check below file

 

vendor/magento/framework/Message/ManagerInterface.php

List of messages in Magento :

  1. addMessage

  2. addMessages

  3. addError

  4. addWarning

  5. addNotice

  6. addSuccess

  7. addErrorMessage

  8. addWarningMessage

  9. addNoticeMessage

  10. addSuccessMessage

  11. addComplexErrorMessage

  12. addComplexWarningMessage

  13. addComplexNoticeMessage

  14. addComplexSuccessMessage

  15. addUniqueMessages

  16. addException

  17. addExceptionMessag

Hope it helps.

 

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy

Re: Produce exhaustive list of default M2 page messages

Some other types of messages are

  1. Error Message -
  2. Warning -
  3. Notice-