Log in
Repository

PageRepositoryInterface

Magento\Cms\Api\PageRepositoryInterface

What it does

This interface defines the contract for managing CMS pages in Magento 2, providing CRUD (Create, Read, Update, Delete) operations.

Developers use this repository to programmatically save, retrieve, search, and delete CMS pages in a standardized way.

It follows Magento's service contract pattern, making it ideal for creating custom modules or extensions that need to interact with CMS pages.

Public Methods

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