Log in
Model

Block

Magento\CmsGraphQl\Model\Resolver\DataProvider\Block

What it does

This data provider class retrieves CMS block information for GraphQL queries in Magento 2.

Developers use it to fetch block data either by identifier or ID, with the content automatically processed to render widgets and variables.

It handles store-specific blocks and ensures only active blocks are returned.

Public Methods

  • getBlockByIdentifier()
  • getBlockById()