protected static function processBooleanInputOptions($name, &$options) {
        if(isset($options['label'])) {
            $options['labelOptions'] = isset($options['labelOptions']) ? $options['labelOptions'] : [];
            Html::addCssClass($options['labelOptions'], ['widget' => 'form-check-label']);
        }
        Html::addCssClass($options, ['widget' => 'form-check-input']);
        if(!isset($options['id'])) {
            $idMain = strtolower(str_replace(['[]', '][', '[', ']', ' ', '.'], ['', '-', '-', '', '-', '-'], $name));
            $options['id'] = $idMain . '-opt-' . $options['value'];
        }
    }
protected static function processBooleanInputOptions($name, &$options) {
        if(isset($options['label'])) {
            $options['labelOptions'] = isset($options['labelOptions']) ? $options['labelOptions'] : [];
            Html::addCssClass($options['labelOptions'], ['widget' => 'form-check-label']);
        }
        Html::addCssClass($options, ['widget' => 'form-check-input']);
        if(!isset($options['id'])) {
            $idMain = strtolower(str_replace(['[]', '][', '[', ']', ' ', '.'], ['', '-', '-', '', '-', '-'], $name));
            $options['id'] = $idMain . '-opt-' . $options['value'];
        }
    }
protected static function processBooleanInputOptions ( $ name , & $ options ) { if ( isset ( $ options [ 'label' ] ) ) { $ options [ 'labelOptions' ] = isset ( $ options [ 'labelOptions' ] ) ? $ options [ 'labelOptions' ] : [ ] ; Html :: addCssClass ( $ options [ 'labelOptions' ] , [ 'widget' => 'form-check-label' ] ) ; } Html :: addCssClass ( $ options , [ 'widget' => 'form-check-input' ] ) ; if ( ! isset ( $ options [ 'id' ] ) ) { $ idMain = strtolower ( str_replace ( [ '[]' , '][' , '[' , ']' , ' ' , '.' ] , [ '' , '-' , '-' , '' , '-' , '-' ] , $ name ) ) ; $ options [ 'id' ] = $ idMain . '-opt-' . $ options [ 'value' ] ; } }
Process checkbox and radio options array
@param string $name
@param array $options
Process checkbox and radio options array