Log in
Model

Url

Magento\PaypalGraphQl\Model\Resolver\Store\Url

What it does

This class validates and constructs store-specific URLs for PayPal GraphQL operations.

Developers use it to convert relative paths into full URLs with proper store context while ensuring security by preventing malicious URL patterns like directory traversal, protocol injection, and invalid formats.

It's primarily used when processing PayPal return/cancel URLs in GraphQL resolvers.

Public Methods

  • isPath()
  • getUrlFromPath()