Repository
BlockRepositoryInterface
Magento\Cms\Api\BlockRepositoryInterface
What it does
This repository interface defines the contract for managing CMS blocks in Magento 2.
Developers use this to programmatically create, read, update, and delete CMS blocks, or to retrieve lists of blocks with specific search criteria.
It's the standard way to interact with CMS blocks through service contracts rather than direct model manipulation.
Public Methods
- save()
- getById()
- getList()
- delete()
- deleteById()