Log in
Model

CustomLayout

Magento\Cms\Model\Page\Source\CustomLayout

What it does

This class provides a dropdown list of available custom layout options for CMS pages in the Magento admin panel.

It extends PageLayout and adds a 'Default' option at the beginning of the layout selection list, allowing administrators to choose either the default layout or any custom page layouts when creating or editing CMS pages.

Public Methods

  • toOptionArray()