Log in
Model

Yesnocustom

Magento\Config\Model\Config\Source\Yesnocustom

What it does

This class provides a three-option dropdown source for system configuration fields with Yes, No, and Specified choices.

Developers use this when they need a configuration setting that allows users to enable, disable, or provide custom/specified values for a feature.

It implements the ArrayInterface to be compatible with Magento's configuration option rendering system.

Public Methods

  • toOptionArray()