Helper
Message
Magento\GiftMessage\Helper\Message
What it does
This helper class manages gift message functionality in Magento 2, determining when gift messages are allowed for orders, items, and addresses based on configuration settings and product attributes.
Developers use this class to check if gift messages can be displayed in checkout, retrieve gift message data for entities, and render gift message input forms inline on various pages.
Public Methods
- getInline()
- isMessagesAllowed()
- getEscapedGiftMessage()
- getGiftMessageForEntity()
- getCached()
- isCached()
- setCached()
- getAvailableForQuoteItems()
- getAvailableForAddressItems()
- getGiftMessage()