Model
Theme
Magento\Theme\Model\Theme
What it does
The Theme model represents a design theme in Magento 2, managing both physical (filesystem) and virtual (database-customized) themes.
Developers use this class to load, validate, and manipulate theme data, check theme relationships (parent/child themes), handle theme customizations, and manage theme lifecycle operations like saving and deleting themes.
Public Methods
- getThemeImage()
- getCustomization()
- isDeletable()
- isEditable()
- isVirtual()
- isPhysical()
- isVisible()
- hasChildThemes()
- getStagingVersion()
- getParentTheme()
- getArea()
- getThemePath()
- getFullPath()
- getCode()
- getDomainModel()
- beforeSave()
- afterDelete()
- getInheritedThemes()
- toArray()
- populateFromArray()