Log in
Model

Enabledisable

Magento\Config\Model\Config\Source\Enabledisable

What it does

This source model provides a standardized Enable/Disable dropdown option array for Magento admin configuration fields.

Developers use this class when creating system configuration fields that need simple on/off functionality, returning an array with Enable (value 1) and Disable (value 0) options that are automatically translated.

Public Methods

  • toOptionArray()