original_string: public function formatBoolean($field, $value, $options)
      {
          return (bool)$value ?
              $this->Html->label(__d('crud', 'Yes'), ['type' => empty($options['inverted']) ? 'success' : 'danger']) :
              $this->Html->label(__d('crud', 'No'), ['type' => empty($options['inverted']) ? 'danger' : 'success']);
      }
code: public function formatBoolean($field, $value, $options)
      {
          return (bool)$value ?
              $this->Html->label(__d('crud', 'Yes'), ['type' => empty($options['inverted']) ? 'success' : 'danger']) :
              $this->Html->label(__d('crud', 'No'), ['type' => empty($options['inverted']) ? 'danger' : 'success']);
      }
code_tokens: public function formatBoolean ( $ field , $ value , $ options ) { return ( bool ) $ value ? $ this -> Html -> label ( __d ( 'crud' , 'Yes' ) , [ 'type' => empty ( $ options [ 'inverted' ] ) ? 'success' : 'danger' ] ) : $ this -> Html -> label ( __d ( 'crud' , 'No' ) , [ 'type' => empty ( $ options [ 'inverted' ] ) ? 'danger' : 'success' ] ) ; }
docstring: Format a boolean value for display
  
  @param string $field Name of field.
  @param mixed $value Value of field.
  @param array $options Options array
  @return string
docstring_tokens: Format a boolean value for display