Log in
Model

Virtual

Magento\Theme\Model\Theme\Domain\Virtual

What it does

This class manages virtual theme operations in Magento 2, handling the creation and retrieval of staging themes for customization purposes.

Developers use it when working with theme inheritance to get the physical parent theme, create temporary staging versions of virtual themes for safe editing, or check if a theme is assigned to any store.

Public Methods

  • getStagingTheme()
  • getPhysicalTheme()
  • isAssigned()