You are here

public function SearchApiAttachmentsViewsHandlerAttachmentsFilter::admin_summary in Search API attachments 7

Display the filter on the administrative summary.

Overrides views_handler_filter::admin_summary

File

includes/views/search_api_attachments_views_handler_attachments_filter.inc, line 37
Contains SearchApiAttachmentsViewsHandlerAttachmentsFilter.

Class

SearchApiAttachmentsViewsHandlerAttachmentsFilter
Views filter handler class to filter attachments results.

Code

public function admin_summary() {
  if (!empty($this->options['exposed'])) {
    return t('exposed');
  }
  if ($this->value == 0) {
    return t('Include attachments');
  }
  if ($this->value == 1) {
    return t('Exclude attachments');
  }
  return check_plain((string) $this->value);
}