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']);
    }
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']);
    }
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' ] ) ; }
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
Format a boolean value for display