QuestionQ14

Layout/UI

What is the proper way to inject a CMS block into a layout?

  • A
  • B
  • C
Explanation

A CMS block is injected through the Magento\Cms\Block\Block block class with its CMS identifier passed as the block_id layout argument. Layout arguments are the supported mechanism for supplying block properties; action methods are not recommended when an argument-based implementation is available.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!