public function GoogleCSESearch::defaultConfiguration in Google Custom Search Engine 8.2
Same name and namespace in other branches
- 8.3 src/Plugin/Search/GoogleCSESearch.php \Drupal\google_cse\Plugin\Search\GoogleCSESearch::defaultConfiguration()
Gets default configuration for this plugin.
Return value
array An associative array with the default configuration.
Overrides ConfigurableSearchPluginBase::defaultConfiguration
File
- src/
Plugin/ Search/ GoogleCSESearch.php, line 108
Class
- GoogleCSESearch
- Handles searching for node entities using the Search module index.
Namespace
Drupal\google_cse\Plugin\SearchCode
public function defaultConfiguration() {
$configuration = [
'cx' => '',
'results_tab' => '',
'results_width' => 600,
'cof_here' => 'FORID:11',
'cof_google' => 'FORID:0',
'results_prefix' => '',
'results_suffix' => '',
'results_searchbox_width' => 40,
'results_display' => 'here',
'results_display_images' => TRUE,
'no_results_message' => 'Sorry! there were no results matching your query.',
'sitesearch' => '',
'sitesearch_form' => 'radios',
'sitesearch_option' => '',
'sitesearch_default' => 0,
'domain' => 'www.google.com',
'limit_domain' => '',
'cr' => '',
'gl' => '',
'hl' => '',
'locale_hl' => '',
'ie' => 'utf-8',
'lr' => '',
'locale_lr' => '',
'oe' => '',
'safe' => '',
'custom_css' => '',
'custom_results_display' => 'results-only',
'use_adv' => 0,
];
return $configuration;
}