Log in
Model

ValidationComposite

Magento\Cms\Model\PageRepository\ValidationComposite

What it does

This class acts as a decorator for the CMS Page Repository that adds validation logic before saving pages.

Developers would use this when they need to ensure CMS pages meet specific business rules or validation requirements before being persisted to the database.

It implements the repository pattern while adding a validation layer through multiple validators that can be injected via dependency injection.

Public Methods

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