public function GoogleCSESearch::submitConfigurationForm 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::submitConfigurationForm()
Form submission handler.
Parameters
array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm().
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform().
Overrides PluginFormInterface::submitConfigurationForm
File
- src/
Plugin/ Search/ GoogleCSESearch.php, line 592
Class
- GoogleCSESearch
- Handles searching for node entities using the Search module index.
Namespace
Drupal\google_cse\Plugin\SearchCode
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
$values = $form_state
->getValues();
$this->configuration['cx'] = $values['cx'];
$this->configuration['results_tab'] = $values['results_tab'];
$this->configuration['results_width'] = $values['results_width'];
$this->configuration['cof_here'] = $values['cof_here'];
$this->configuration['cof_google'] = $values['cof_google'];
$this->configuration['results_prefix'] = $values['results_prefix'];
$this->configuration['results_suffix'] = $values['results_suffix'];
$this->configuration['results_searchbox_width'] = $values['results_searchbox_width'];
$this->configuration['results_display'] = $values['results_display'];
$this->configuration['results_display_images'] = $values['results_display_images'];
$this->configuration['no_results_message'] = $values['no_results_message'];
$this->configuration['sitesearch'] = $values['sitesearch'];
$this->configuration['sitesearch_form'] = $values['sitesearch_form'];
$this->configuration['sitesearch_option'] = $values['sitesearch_option'];
$this->configuration['sitesearch_default'] = $values['sitesearch_default'];
$this->configuration['domain'] = $values['domain'];
$this->configuration['limit_domain'] = $values['limit_domain'];
$this->configuration['cr'] = $values['cr'];
$this->configuration['gl'] = $values['gl'];
$this->configuration['hl'] = $values['hl'];
$this->configuration['locale_hl'] = $values['locale_hl'];
$this->configuration['ie'] = $values['ie'];
$this->configuration['lr'] = $values['lr'];
$this->configuration['locale_lr'] = $values['locale_lr'];
$this->configuration['oe'] = $values['oe'];
$this->configuration['safe'] = $values['safe'];
$this->configuration['custom_css'] = $values['custom_css'];
$this->configuration['custom_results_display'] = $values['custom_results_display'];
$this->configuration['use_adv'] = $values['use_adv'];
}