You are here

public function DoubleQuoteWorkaround::buildConfigurationForm in Search API Solr 4.x

Same name and namespace in other branches
  1. 8.3 src/Plugin/search_api/processor/DoubleQuoteWorkaround.php \Drupal\search_api_solr\Plugin\search_api\processor\DoubleQuoteWorkaround::buildConfigurationForm()
  2. 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\processor

Code

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;
}