Interface
BlockInterface
Magento\Cms\Api\Data\BlockInterface
What it does
This interface defines the contract for CMS Block data objects in Magento 2.
Developers use this when working with CMS blocks programmatically to get or set block properties like identifier, title, content, and active status.
It's primarily used in custom modules, plugins, or API integrations that need to manipulate or retrieve CMS block data.
Public Methods
- getId()
- getIdentifier()
- getTitle()
- getContent()
- getCreationTime()
- getUpdateTime()
- isActive()
- setId()
- setIdentifier()
- setTitle()
- setContent()
- setCreationTime()
- setUpdateTime()
- setIsActive()