WebapiConfigProvider
Magento\ReCaptchaSendFriend\Model\WebapiConfigProvider
What it does
This class provides reCAPTCHA validation configuration for the Send to Friend feature's GraphQL API endpoint.
It checks if reCAPTCHA is enabled for the 'sendfriend' form and returns the appropriate validation settings when the SendEmailToFriend GraphQL resolver is called.
Developers would use this to integrate reCAPTCHA protection into the Send to Friend functionality through the Web API.
Public Methods
- getConfigFor()