Log in
Model

Boolean

Magento\Customer\Model\Metadata\Form\Boolean

What it does

This class handles boolean form elements for customer attributes in Magento 2, specifically converting true/false values (1/0) into human-readable 'Yes'/'No' text.

Developers would use this when working with customer attribute forms that need to display boolean values, such as newsletter subscriptions or account preferences.

It extends the Select class to provide specialized boolean handling with localized output.