Model
PageRepository
Magento\Cms\Model\PageRepository
What it does
PageRepository provides CRUD operations for managing CMS pages in Magento 2.
Developers use this class to programmatically create, retrieve, update, and delete CMS pages while ensuring proper validation of layout updates and URL identifiers.
It implements the repository pattern and should be used instead of direct model manipulation for better abstraction and API compatibility.
Public Methods
- save()
- getById()
- getList()
- delete()
- deleteById()