Model
CustomLayoutValidator
Magento\Cms\Model\Page\CustomLayout\CustomLayoutValidator
What it does
This class validates custom layout updates for CMS pages in Magento 2.
It ensures that custom layout XML cannot be modified once set - developers can only remove it entirely.
This security measure prevents unauthorized or accidental changes to page layouts that could break the site structure.
Public Methods
- validate()