Log in
Model

HomePageUrlLocator

Magento\CmsUrlRewriteGraphQl\Model\Resolver\UrlRewrite\HomePageUrlLocator

What it does

This class resolves the home page URL (represented as '/') to the actual CMS page identifier configured in the store settings.

Developers would use this when working with GraphQL URL rewrites to ensure that requests for the root URL are properly mapped to the configured home page, which might be a specific CMS page like 'home' or 'landing-page'.

Public Methods

  • locateUrl()