Log in
Model

UrlProvider

Magento\GraphQlServer\Model\UrlProvider

What it does

This class provides the URL for Magento's GraphQL server endpoint.

Developers use it to programmatically retrieve the GraphQL gateway URL with proper routing and query parameters, ensuring consistent access to the GraphQL API across the application.

Public Methods

  • getUrl()