MessagesProvider
Magento\Catalog\Model\Theme\CustomerData\MessagesProvider
What it does
This class provides session messages to the customer data section system in Magento 2, specifically for catalog-related operations.
It determines whether to clear session messages based on the product action synchronization settings and force_new_section_timestamp parameter.
Developers would use this when working with frontend customer data sections that need to display catalog-related messages like product add-to-cart confirmations or errors.
Public Methods
- getMessages()