public function DoubleQuoteWorkaround::defaultConfiguration in Search API Solr 8.3
Same name and namespace in other branches
- 8.2 src/Plugin/search_api/processor/DoubleQuoteWorkaround.php \Drupal\search_api_solr\Plugin\search_api\processor\DoubleQuoteWorkaround::defaultConfiguration()
- 4.x src/Plugin/search_api/processor/DoubleQuoteWorkaround.php \Drupal\search_api_solr\Plugin\search_api\processor\DoubleQuoteWorkaround::defaultConfiguration()
Gets default configuration for this plugin.
Return value
array An associative array with the default configuration.
Overrides FieldsProcessorPluginBase::defaultConfiguration
File
- src/
Plugin/ search_api/ processor/ DoubleQuoteWorkaround.php, line 35
Class
- DoubleQuoteWorkaround
- Replaces double quotes in field values and query.
Namespace
Drupal\search_api_solr\Plugin\search_api\processorCode
public function defaultConfiguration() {
$configuration = parent::defaultConfiguration();
$configuration += [
// The replacement for a double quote in the input string.
'replacement' => '|9999999998|',
];
return $configuration;
}