You are here

protected property PhpTransliteration::$fixTransliterateForRemoveDiacritics in Drupal 8

Same name and namespace in other branches
  1. 9 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.

File

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

Class

PhpTransliteration
Implements transliteration without using the PECL extensions.

Namespace

Drupal\Component\Transliteration

Code

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