Log in
Model

Design

Magento\Theme\Model\View\Design

What it does

This class manages the current design configuration for a Magento 2 request, including the active theme, area (frontend/adminhtml), and locale.

Developers use it to get or set the current theme, retrieve design parameters, and manage area-specific design settings.

It's commonly used in layout processing, template rendering, and when you need to programmatically change or retrieve the active theme configuration.

Public Methods

  • setArea()
  • getArea()
  • setDesignTheme()
  • getConfigurationDesignTheme()
  • setDefaultDesignTheme()
  • getDesignTheme()
  • getThemePath()
  • getLocale()
  • setLocale()
  • getDesignParams()