Log in
Model

Blocks

Magento\CmsGraphQl\Model\Resolver\Blocks

What it does

This class is a GraphQL resolver that handles queries for CMS blocks in Magento 2's GraphQL API.

Developers use this when they need to retrieve CMS block content through GraphQL, such as in headless storefront implementations or custom frontend applications.

It accepts block identifiers (either numeric IDs or string identifiers) and returns the corresponding block data for the current store.

Public Methods

  • resolve()