You are here

public function IgnoreCharacters::defaultConfiguration in Search API 8

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/IgnoreCharacters.php, line 35

Class

IgnoreCharacters
Configure types of characters which should be ignored for searches.

Namespace

Drupal\search_api\Plugin\search_api\processor

Code

public function defaultConfiguration() {
  $configuration = parent::defaultConfiguration();
  $configuration += [
    'ignorable' => "['¿¡!?,.:;]",
    'ignorable_classes' => [
      'Pc',
      'Pd',
      'Pe',
      'Pf',
      'Pi',
      'Po',
      'Ps',
    ],
  ];
  return $configuration;
}