value(), 'true', false ) . '> ' . $field->addon( 'label' ) . ''; } /** * Sanitize checkbox value * Allows only for empty string and 'true' * @param string $value saved value * @return string empty string or 'true' */ public function sanitize( $value ) { return ( $value !== 'true' ) ? '' : $value; } }