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