Helper
Data
Magento\Contact\Helper\Data
What it does
This helper class provides utilities for the Contact module, including checking if the contact form is enabled, retrieving logged-in customer information (name and email), and accessing previously submitted form data.
Developers use this in contact form templates and controllers to pre-populate customer information and handle form persistence after validation errors.
Public Methods
- isEnabled()
- getUserName()
- getUserEmail()
- getPostValue()