public function TransliterationInterface::removeDiacritics in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Component/Transliteration/TransliterationInterface.php \Drupal\Component\Transliteration\TransliterationInterface::removeDiacritics()
Removes diacritics (accents) from certain letters.
This only applies to certain letters: Accented Latin characters like a-with-acute-accent, in the UTF-8 character range of 0xE0 to 0xE6 and 01CD to 024F. Replacements that would result in the string changing length are excluded, as well as characters that are not accented US-ASCII letters.
Parameters
string $string: The string holding diacritics.
Return value
string $string with accented letters replaced by their unaccented equivalents.
1 method overrides TransliterationInterface::removeDiacritics()
- PhpTransliteration::removeDiacritics in core/
lib/ Drupal/ Component/ Transliteration/ PhpTransliteration.php - Removes diacritics (accents) from certain letters.
File
- core/
lib/ Drupal/ Component/ Transliteration/ TransliterationInterface.php, line 26
Class
- TransliterationInterface
- Defines an interface for classes providing transliteration.
Namespace
Drupal\Component\TransliterationCode
public function removeDiacritics($string);