Enhances PhpTransliteration with an alter hook.
Hierarchy
- class \Drupal\Component\Transliteration\PhpTransliteration implements TransliterationInterface
- class \Drupal\Core\Transliteration\PhpTransliteration
See also
hook_transliteration_overrides_alter()
Related topics
- Transliteration
- Transliterate from Unicode to US-ASCII
File
- core/lib/Drupal/Core/Transliteration/PhpTransliteration.php, line 14
Namespace
Drupal\Core\Transliteration
Members
Name | Modifiers | Type | Description |
---|---|---|---|
PhpTransliteration::$dataDirectory | protected | property | Directory where data for transliteration resides. |
PhpTransliteration::$genericMap | protected | property | Non-language-specific transliteration tables. |
PhpTransliteration::$languageOverrides | protected | property | Associative array of language-specific character transliteration tables. |
PhpTransliteration::$moduleHandler | protected | property | The module handler to execute the transliteration_overrides alter hook. |
PhpTransliteration::lookupReplacement | protected | function | Look up the generic replacement for a UTF-8 character code. |
PhpTransliteration::ordUTF8 | protected static | function | Finds the character code for a UTF-8 character: like ord() but for UTF-8. |
PhpTransliteration::readGenericData | protected | function | Reads in generic transliteration data for a bank of characters. |
PhpTransliteration::readLanguageOverrides | protected | function | Overrides \Drupal\Component\Transliteration\PhpTransliteration::readLanguageOverrides(). Overrides PhpTransliteration::readLanguageOverrides |
PhpTransliteration::removeDiacritics | public | function | Removes diacritics (accents) from certain letters. Overrides TransliterationInterface::removeDiacritics |
PhpTransliteration::replace | protected | function | Replaces a single Unicode character using the transliteration database. |
PhpTransliteration::transliterate | public | function | Transliterates text from Unicode to US-ASCII. Overrides TransliterationInterface::transliterate |
PhpTransliteration::__construct | public | function | Constructs a PhpTransliteration object. Overrides PhpTransliteration::__construct |
Please login to continue.