CustomLayoutRepositoryInterface
Magento\Cms\Model\Page\CustomLayoutRepositoryInterface
What it does
This repository interface manages custom layout file selections for CMS pages in Magento 2.
Developers use it to programmatically assign, retrieve, or remove custom layout XML files for specific pages, allowing dynamic control over page rendering without modifying page content directly.
It's particularly useful when building custom page templates or managing layout variations across different CMS pages.
Public Methods
- save()
- deleteFor()
- getFor()