public function DoubleQuoteWorkaround::buildConfigurationForm in Search API Solr 4.x
Same name and namespace in other branches
- 8.3 src/Plugin/search_api/processor/DoubleQuoteWorkaround.php \Drupal\search_api_solr\Plugin\search_api\processor\DoubleQuoteWorkaround::buildConfigurationForm()
- 8.2 src/Plugin/search_api/processor/DoubleQuoteWorkaround.php \Drupal\search_api_solr\Plugin\search_api\processor\DoubleQuoteWorkaround::buildConfigurationForm()
File
- src/
Plugin/ search_api/ processor/ DoubleQuoteWorkaround.php, line 49
Class
- DoubleQuoteWorkaround
- Replaces double quotes in field values and query.
Namespace
Drupal\search_api_solr\Plugin\search_api\processorCode
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
$form = parent::buildConfigurationForm($form, $form_state);
$form['replacement'] = [
'#type' => 'textfield',
'#title' => $this
->t('Replacement'),
'#description' => $this
->t('The replacement for a double quote in the input string.'),
'#default_value' => $this->configuration['replacement'],
];
return $form;
}