PageLayout
Magento\Cms\Model\Page\Source\PageLayout
What it does
This class provides a source of available page layout options for CMS pages in Magento 2.
Developers use it to populate dropdown fields in the admin panel where users can select different page layouts (like 1-column, 2-columns with left bar, etc.) when creating or editing CMS pages.
It retrieves the available page layouts from the theme configuration and formats them as an array of options.
Public Methods
- toOptionArray()