Model
Theme
Magento\Cms\Model\Page\Source\Theme
What it does
This class provides a list of available themes as options for CMS pages in Magento 2.
Developers use this class when they need to populate dropdown menus or option arrays with theme choices, allowing administrators to assign specific themes to individual CMS pages.
It implements OptionSourceInterface to standardize how theme options are retrieved and formatted.
Public Methods
- toOptionArray()