Model

Baseurl

Magento\Config\Model\Config\Backend\Baseurl

What it does

This backend model validates and saves base URL configuration values in Magento 2's system configuration.

It ensures URLs are properly formatted, supports placeholders like {{unsecure_base_url}}, and automatically cleans merged CSS/JS files when URL settings change.

Developers interact with this class when customizing store URL validation rules or extending base URL configuration behavior.

Public Methods

  • beforeSave()
  • afterSave()