You are here

protected function IgnoreCharacters::getCharacterSets in Search API 8

Retrieves an options list for available Unicode character properties.

Return value

string[] An options list with all available Unicode character properties.

1 call to IgnoreCharacters::getCharacterSets()
IgnoreCharacters::buildConfigurationForm in src/Plugin/search_api/processor/IgnoreCharacters.php
Form constructor.

File

src/Plugin/search_api/processor/IgnoreCharacters.php, line 140

Class

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

Namespace

Drupal\search_api\Plugin\search_api\processor

Code

protected function getCharacterSets() {
  return [
    'Pc' => $this
      ->t('Punctuation, Connector Characters'),
    'Pd' => $this
      ->t('Punctuation, Dash Characters'),
    'Pe' => $this
      ->t('Punctuation, Close Characters'),
    'Pf' => $this
      ->t('Punctuation, Final quote Characters'),
    'Pi' => $this
      ->t('Punctuation, Initial quote Characters'),
    'Po' => $this
      ->t('Punctuation, Other Characters'),
    'Ps' => $this
      ->t('Punctuation, Open Characters'),
    'Cc' => $this
      ->t('Other, Control Characters'),
    'Cf' => $this
      ->t('Other, Format Characters'),
    'Co' => $this
      ->t('Other, Private Use Characters'),
    'Mc' => $this
      ->t('Mark, Spacing Combining Characters'),
    'Me' => $this
      ->t('Mark, Enclosing Characters'),
    'Mn' => $this
      ->t('Mark, Nonspacing Characters'),
    'Sc' => $this
      ->t('Symbol, Currency Characters'),
    'Sk' => $this
      ->t('Symbol, Modifier Characters'),
    'Sm' => $this
      ->t('Symbol, Math Characters'),
    'So' => $this
      ->t('Symbol, Other Characters'),
    'Zl' => $this
      ->t('Separator, Line Characters'),
    'Zp' => $this
      ->t('Separator, Paragraph Characters'),
    'Zs' => $this
      ->t('Separator, Space Characters'),
  ];
}