Model
Theme
Magento\Cms\Model\Page\Source\Theme
What it does
This class provides a dropdown list of available themes for CMS pages in Magento 2 admin panel.
Developers use it when they need to populate theme selection options in forms, allowing administrators to assign specific themes to individual CMS pages or use the default theme.
It implements OptionSourceInterface to be compatible with UI components and form fields.
Public Methods
- toOptionArray()