Log in
Model

CustomUrlLocator

Magento\UrlRewriteGraphQl\Model\Resolver\UrlRewrite\CustomUrlLocator

What it does

This class acts as a pool/aggregator for custom URL locators in Magento's GraphQL URL rewrite functionality.

Developers would use this when implementing custom URL resolution logic for GraphQL queries, as it iterates through all registered custom URL locators until one successfully resolves the given URL key, enabling extensible URL handling for custom entity types.

Public Methods

  • locateUrl()