original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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
docstring_tokens: Add custom CSS classes to array of options .