PhpTransliteration::$fixTransliterateForRemoveDiacritics

Same name in other branches
  1. 8.9.x core/lib/Drupal/Component/Transliteration/PhpTransliteration.php \Drupal\Component\Transliteration\PhpTransliteration::fixTransliterateForRemoveDiacritics
  2. 10 core/lib/Drupal/Component/Transliteration/PhpTransliteration.php \Drupal\Component\Transliteration\PhpTransliteration::fixTransliterateForRemoveDiacritics
  3. 11.x core/lib/Drupal/Component/Transliteration/PhpTransliteration.php \Drupal\Component\Transliteration\PhpTransliteration::fixTransliterateForRemoveDiacritics

Special characters for ::removeDiacritics().

Characters which have accented variants but their base character transliterates to more than one ASCII character require special treatment: we want to remove their accent and use the un- transliterated base character.

Type: fixTransliterateForRemoveDiacritics

File

core/lib/Drupal/Component/Transliteration/PhpTransliteration.php, line 71

Class

PhpTransliteration
Implements transliteration without using the PECL extensions.

Namespace

Drupal\Component\Transliteration

Code

protected $fixTransliterateForRemoveDiacritics = [
    'AE' => 'Æ',
    'ae' => 'æ',
    'ZH' => 'Ʒ',
    'zh' => 'ʒ',
];

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.