Log in
Model

Block

Magento\Cms\Model\Config\Source\Block

What it does

This class provides a source of CMS block options for use in system configuration fields and forms throughout Magento 2.

Developers use this class when they need to create a dropdown or multi-select field that allows administrators to choose from available CMS blocks, such as in widget configurations or backend form elements.

Public Methods

  • toOptionArray()