You are here

function SearchApiViewsHandlerFilter::admin_summary in Search API 7

Display the filter on the administrative summary

Overrides views_handler_filter::admin_summary

1 call to SearchApiViewsHandlerFilter::admin_summary()
SearchApiViewsHandlerFilterEntity::admin_summary in contrib/search_api_views/includes/handler_filter_entity.inc
Display the filter on the administrative summary
3 methods override SearchApiViewsHandlerFilter::admin_summary()
SearchApiViewsHandlerFilterEntity::admin_summary in contrib/search_api_views/includes/handler_filter_entity.inc
Display the filter on the administrative summary
SearchApiViewsHandlerFilterNumeric::admin_summary in contrib/search_api_views/includes/handler_filter_numeric.inc
Display the filter on the administrative summary
SearchApiViewsHandlerFilterOptions::admin_summary in contrib/search_api_views/includes/handler_filter_options.inc
Provides a summary of this filter's value for the admin UI.

File

contrib/search_api_views/includes/handler_filter.inc, line 84
Contains SearchApiViewsHandlerFilter.

Class

SearchApiViewsHandlerFilter
Views filter handler base class for handling all "normal" cases.

Code

function admin_summary() {
  if (!empty($this->options['exposed'])) {
    return t('exposed');
  }
  if ($this->operator === 'empty') {
    return t('is empty');
  }
  if ($this->operator === 'not empty') {
    return t('is not empty');
  }
  return check_plain((string) $this->operator) . ' ' . check_plain((string) $this->value);
}