Log in
Model

CustomLayoutValidator

Magento\Cms\Model\Page\CustomLayout\CustomLayoutValidator

What it does

This validator ensures that custom layout XML updates for CMS pages cannot be modified after creation - they can only be removed.

Developers would use this class when saving CMS pages to prevent unauthorized or accidental changes to custom layout XML, which is a security measure to protect against XML injection attacks.

Public Methods

  • validate()