Model
ApiKeyValidator
Magento\PageBuilder\Model\GoogleMaps\ApiKeyValidator
What it does
This class validates Google Maps API keys by making a test request to the Google Maps Embed API.
Developers use this to verify that a provided API key is valid and has the necessary permissions before saving it in the Page Builder configuration.
It returns an array indicating whether the validation was successful along with any error messages.
Public Methods
- validate()