Model
CustomLayoutRepository
Magento\Cms\Model\Page\CustomLayout\CustomLayoutRepository
What it does
This repository manages custom layout assignments for CMS pages in Magento 2.
Developers use this class to save, retrieve, validate, or delete custom layout file selections for specific CMS pages, ensuring that only valid layout files are assigned.
It acts as the data access layer between the application and the page's custom layout configuration.
Public Methods
- save()
- validateLayoutSelectedFor()
- deleteFor()
- getFor()