Log in
Model

CustomLayoutManager

Magento\Cms\Model\Page\CustomLayout\CustomLayoutManager

What it does

This class manages custom layout files for CMS pages in Magento 2.

Developers use it to fetch available custom layout XML files for a specific page and apply selected custom layouts to page rendering.

It's essential when you need to programmatically work with CMS page custom layouts, such as displaying layout options in admin or applying custom designs to frontend pages.

Public Methods

  • fetchAvailableFiles()
  • applyUpdate()