Log in
Model

CustomLayout

Magento\Cms\Model\Page\Source\CustomLayout

What it does

This class provides a source model for custom layout options in CMS pages.

It extends the PageLayout class and adds a 'Default' option to the beginning of the layout options array.

Developers use this class when building admin forms or configuration options where users need to select a custom layout for CMS pages, with the ability to choose the default layout as well.

Public Methods

  • toOptionArray()