Enhances PHPTransliteration with an alter hook.
Expanded class hierarchy of PHPTransliteration
class PHPTransliteration extends BaseTransliteration {
/**
* Overrides \Drupal\Component\Transliteration\PHPTransliteration::readLanguageOverrides().
*
* Allows modules to alter the language-specific $overrides array by invoking
* hook_transliteration_overrides_alter().
*/
protected function readLanguageOverrides($langcode) {
parent::readLanguageOverrides($langcode);
// Let modules alter the language-specific overrides.
drupal_alter('transliteration_overrides', $this->languageOverrides[$langcode], $langcode);
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PHPTransliteration:: |
protected | property | Directory where data for transliteration resides. | |
PHPTransliteration:: |
protected | property | Non-language-specific transliteration tables. | |
PHPTransliteration:: |
protected | property | Associative array of language-specific character transliteration tables. | |
PHPTransliteration:: |
protected static | function | Finds the character code for a UTF-8 character: like ord() but for UTF-8. | |
PHPTransliteration:: |
protected | function | Reads in generic transliteration data for a bank of characters. | |
PHPTransliteration:: |
protected | function |
Overrides \Drupal\Component\Transliteration\PHPTransliteration::readLanguageOverrides(). Overrides PHPTransliteration:: |
|
PHPTransliteration:: |
protected | function | Replaces a single Unicode character using the transliteration database. | |
PHPTransliteration:: |
public | function |
Implements TransliterationInterface::transliterate(). Overrides TransliterationInterface:: |
|
PHPTransliteration:: |
public | function | Constructs a transliteration object. |