Log in
Model

Baseurl

Magento\Config\Model\Config\Backend\Baseurl

What it does

This class validates and saves base URL configuration values in Magento 2's admin panel.

It ensures that URLs entered for store base URLs, media URLs, and static content URLs are properly formatted, either as fully qualified URLs or using allowed placeholders like {{base_url}}.

When base URL settings are changed, it automatically cleans compiled CSS/JS assets to prevent caching issues.

Public Methods

  • beforeSave()
  • afterSave()