Log in
Interface

CustomUrlLocatorInterface

Magento\UrlRewriteGraphQl\Model\Resolver\UrlRewrite\CustomUrlLocatorInterface

What it does

This interface defines a contract for custom URL resolution in GraphQL queries.

Developers implement this interface to add custom URL handling logic, such as resolving special paths like '/' to the home page or handling non-standard URL patterns that don't follow Magento's standard URL rewrite rules.

It's used when you need to extend GraphQL URL resolution beyond the default product, category, and CMS page URLs.

Public Methods

  • locateUrl()