You are here

function SarniaViewsHandlerField::click_sortable in Sarnia 7

Check whether this field is sortable.

Overrides views_handler_field::click_sortable

File

handlers/handler_field.inc, line 306

Class

SarniaViewsHandlerField
Field handler for displaying Solr fields in Views.

Code

function click_sortable() {
  $name = $this->options['solr_property'];
  $server = search_api_server_load($this->sarnia_type_info['search_api_server']);
  $fields = $server
    ->getSortFields();
  return isset($fields[$name]);
}