Block
Magento\Cms\Model\ResourceModel\Block
What it does
This is the resource model for CMS blocks in Magento 2, responsible for database operations like loading, saving, and deleting CMS block data.
Developers use this class when they need to interact with CMS block data at the database level, check if block identifiers are unique across stores, or retrieve store associations for blocks.
It handles multi-store functionality and ensures data integrity through validation before saving.
Public Methods
- getConnection()
- load()
- getIsUniqueBlockToStores()
- lookupStoreIds()
- save()
- delete()