Log in
Interface

BlockSearchResultsInterface

Magento\Cms\Api\Data\BlockSearchResultsInterface

What it does

This interface defines the contract for handling search results of CMS blocks in Magento 2.

Developers use this when implementing or working with repository methods that return collections of CMS blocks, such as searching or filtering blocks.

It extends the base SearchResultsInterface to provide type-specific methods for getting and setting arrays of BlockInterface objects.

Public Methods

  • getItems()
  • setItems()