CheckboxField
CheckboxField('my_checkbox')
->setOptions([
'foo_enabled' => 'Enable the Foo',
'bar_enabled' => 'Enable the Bar',
])
Single Values
If you are only controlling a single value, you do not need to set options.
CheckboxField('foo_enabled'))
However, this will result in the field label and the checkbox label being the same.
Therefore you probably want to set a single value:
CheckboxField('foo_enabled')
->setOptions([
'foo_enabled' => 'Enable the Foo',
]),