Log in
Model

ValidationComposite

Magento\Cms\Model\PageRepository\ValidationComposite

What it does

This class acts as a decorator/wrapper around the CMS Page Repository that adds validation capabilities before saving pages.

Developers use this to ensure CMS pages meet specific validation rules (like URL key uniqueness, required fields) before persisting them to the database.

It intercepts save operations, runs configured validators, and delegates to the actual repository implementation if validation passes.

Public Methods

  • save()
  • getById()
  • getList()
  • delete()
  • deleteById()