Log in
Model

Exceptions

Magento\Theme\Model\Design\Backend\Exceptions

What it does

This class manages theme design exceptions configuration in Magento 2, allowing administrators to apply different themes based on URL patterns.

It validates and serializes exception rules where you can specify search patterns (regular expressions or strings) and corresponding theme values, then stores them in system configuration.

Developers would use this when building functionality to conditionally apply themes based on user agent strings or URL patterns.

Public Methods

  • beforeSave()
  • afterLoad()
  • getValue()