protected function _addClass(FormHelper $formHelper, $options, $class)
    {
        $bootstrap = isset($options['bootstrap']) ? (bool)$options['bootstrap'] : true;
        if ($bootstrap) {
            $options = $formHelper->addClass((array)$options, $class);
        }

        if (isset($options['bootstrap'])) {
            unset($options['bootstrap']);
        }

        return $options;
    }
protected function _addClass(FormHelper $formHelper, $options, $class)
    {
        $bootstrap = isset($options['bootstrap']) ? (bool)$options['bootstrap'] : true;
        if ($bootstrap) {
            $options = $formHelper->addClass((array)$options, $class);
        }

        if (isset($options['bootstrap'])) {
            unset($options['bootstrap']);
        }

        return $options;
    }
protected function _addClass ( FormHelper $ formHelper , $ options , $ class ) { $ bootstrap = isset ( $ options [ 'bootstrap' ] ) ? ( bool ) $ options [ 'bootstrap' ] : true ; if ( $ bootstrap ) { $ options = $ formHelper -> addClass ( ( array ) $ options , $ class ) ; } if ( isset ( $ options [ 'bootstrap' ] ) ) { unset ( $ options [ 'bootstrap' ] ) ; } return $ options ; }
Add custom CSS classes to array of options.

@param \Cake\View\Helper\FormHelper $formHelper Instance of FormHelper
@param null|array $options Input's options
@param string $class CSS classes to add
@return array
Add custom CSS classes to array of options .