public function SearchApiViewsFacetsBlockDisplay::options_summary in Search API 7
Provide the summary for page options in the views UI.
This output is returned as an array.
Overrides views_plugin_display_block::options_summary
File
- contrib/
search_api_views/ includes/ display_facet_block.inc, line 94 - Display plugin for displaying the search facets in a block.
Class
- SearchApiViewsFacetsBlockDisplay
- Plugin class for displaying search facets in a block.
Code
public function options_summary(&$categories, &$options) {
parent::options_summary($categories, $options);
$options['linked_path'] = array(
'category' => 'block',
'title' => t('Search page path'),
'value' => $this
->get_option('linked_path') ? $this
->get_option('linked_path') : t('Use current path'),
);
$field_options = $this
->getFieldOptions();
$options['facet_field'] = array(
'category' => 'block',
'title' => t('Facet field'),
'value' => $this
->get_option('facet_field') ? $field_options[$this
->get_option('facet_field')] : t('None'),
);
$options['hide_block'] = array(
'category' => 'block',
'title' => t('Hide block'),
'value' => $this
->get_option('hide_block') ? t('Yes') : t('No'),
);
}