public function SarniaViewsHandlerField::sanitize_value in Sarnia 7
Sanitize the value for output.
Parameters
string $value: The value being rendered.
string $type: The type of sanitization needed. If not provided, no processing is done.
Return value
string Returns the safe value.
Overrides views_handler::sanitize_value
See also
search_api_sanitize_field_value()
2 calls to SarniaViewsHandlerField::sanitize_value()
- SarniaViewsHandlerField::render in handlers/
handler_field.inc - Fallback method to render the field.
- SarniaViewsHandlerField::set_items in handlers/
handler_field.inc - Extract the field values as an array of items.
File
- handlers/
handler_field.inc, line 458
Class
- SarniaViewsHandlerField
- Field handler for displaying Solr fields in Views.
Code
public function sanitize_value($value, $type = NULL) {
// Value is sanitized by Search API regardless of type - no other processing
// needs to be done.
return $value;
}