You are here

public function CurrentSearchItemText::getDefaultSettings in Facet API 7.2

Same name and namespace in other branches
  1. 6.3 contrib/current_search/plugins/current_search/item_text.inc \CurrentSearchItemText::getDefaultSettings()
  2. 7 contrib/current_search/plugins/current_search/item_text.inc \CurrentSearchItemText::getDefaultSettings()

Implements CurrentSearchItem::getDefaultSettings().

Overrides CurrentSearchItem::getDefaultSettings

File

contrib/current_search/plugins/current_search/item_text.inc, line 114
The text current search item plugin class.

Class

CurrentSearchItemText
Current search item plugin that displays text configured by the user.

Code

public function getDefaultSettings() {
  $defaults = array(
    'plural' => 0,
    'plural_condition' => 'facetapi_results:result-count',
    'text' => '',
    'text_plural' => '',
  );
  return $defaults + $this
    ->wrapperDefaults();
}