Log in
Model

Url

Magento\Backend\Model\Url

What it does

This class handles URL generation and management specifically for Magento's admin backend area.

It extends the base URL functionality to add security features like secret key generation for admin URLs, manages the startup page configuration, and ensures proper routing with the admin area front name prefix.

Developers use this when building backend extensions that need to generate secure admin panel URLs or customize admin navigation.

Public Methods

  • getUrl()
  • getSecretKey()
  • useSecretKey()
  • turnOnSecretKey()
  • turnOffSecretKey()
  • renewSecretUrls()
  • getStartupPageUrl()
  • findFirstAvailableMenu()
  • setScope()
  • setSession()
  • getAreaFrontName()