Log in
Model

PathConfig

Magento\Store\Model\PathConfig

What it does

PathConfig determines URL security requirements and default paths for the Magento storefront.

Developers would use this class when implementing custom routing logic or need to check if a specific URL path should be served over HTTPS, generate secure URLs, or retrieve the default frontend path configuration.

Public Methods

  • getCurrentSecureUrl()
  • shouldBeSecure()
  • getDefaultPath()