Theme\Collection
Magento\Theme\Model\ResourceModel\Theme\Collection
What it does
This collection class manages and queries theme data from the database in Magento 2.
Developers use it to retrieve, filter, and manipulate theme records - such as loading themes by area (frontend/adminhtml), filtering by type (physical/virtual), or getting theme hierarchies with parent-child relationships.
It's commonly used in theme management interfaces and when programmatically working with Magento themes.
Public Methods
- addParentTitle()
- addAreaFilter()
- addTypeRelationFilter()
- addTypeFilter()
- filterVisibleThemes()
- toOptionArray()
- toOptionHash()
- getThemeByFullPath()
- setPageSize()
- updateChildRelations()
- filterPhysicalThemes()
- filterThemeCustomizations()
- getLabels()
- loadRegisteredThemes()