Log in
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 interface when working with CMS blocks programmatically to get or set block properties like identifier, title, content, and active status.

It's essential for creating custom modules that need to interact with CMS blocks through Magento's API layer.

Public Methods

  • getId()
  • getIdentifier()
  • getTitle()
  • getContent()
  • getCreationTime()
  • getUpdateTime()
  • isActive()
  • setId()
  • setIdentifier()
  • setTitle()
  • setContent()
  • setCreationTime()
  • setUpdateTime()
  • setIsActive()