You are here

public function SearchApiFieldTrait::clickSortable in Search API 8

Determines if this field is click sortable.

This is the case if this Views field is linked to a certain Search API field.

Return value

bool TRUE if this field is available for click-sorting, FALSE otherwise.

See also

\Drupal\views\Plugin\views\field\FieldHandlerInterface::clickSortable()

File

src/Plugin/views/field/SearchApiFieldTrait.php, line 323

Class

SearchApiFieldTrait
Provides a trait to use for Search API Views field handlers.

Namespace

Drupal\search_api\Plugin\views\field

Code

public function clickSortable() {
  return !empty($this->definition['search_api field']);
}