function PhpTransliteration::readLanguageOverrides

Same name in this branch
  1. 8.9.x core/lib/Drupal/Component/Transliteration/PhpTransliteration.php \Drupal\Component\Transliteration\PhpTransliteration::readLanguageOverrides()
Same name in other branches
  1. 9 core/lib/Drupal/Core/Transliteration/PhpTransliteration.php \Drupal\Core\Transliteration\PhpTransliteration::readLanguageOverrides()
  2. 9 core/lib/Drupal/Component/Transliteration/PhpTransliteration.php \Drupal\Component\Transliteration\PhpTransliteration::readLanguageOverrides()
  3. 10 core/lib/Drupal/Core/Transliteration/PhpTransliteration.php \Drupal\Core\Transliteration\PhpTransliteration::readLanguageOverrides()
  4. 10 core/lib/Drupal/Component/Transliteration/PhpTransliteration.php \Drupal\Component\Transliteration\PhpTransliteration::readLanguageOverrides()
  5. 11.x core/lib/Drupal/Core/Transliteration/PhpTransliteration.php \Drupal\Core\Transliteration\PhpTransliteration::readLanguageOverrides()
  6. 11.x core/lib/Drupal/Component/Transliteration/PhpTransliteration.php \Drupal\Component\Transliteration\PhpTransliteration::readLanguageOverrides()

Overrides \Drupal\Component\Transliteration\PhpTransliteration::readLanguageOverrides().

Allows modules to alter the language-specific $overrides array by invoking hook_transliteration_overrides_alter().

Overrides PhpTransliteration::readLanguageOverrides

File

core/lib/Drupal/Core/Transliteration/PhpTransliteration.php, line 44

Class

PhpTransliteration
Enhances PhpTransliteration with an alter hook.

Namespace

Drupal\Core\Transliteration

Code

protected function readLanguageOverrides($langcode) {
    parent::readLanguageOverrides($langcode);
    // Let modules alter the language-specific overrides.
    $this->moduleHandler
        ->alter('transliteration_overrides', $this->languageOverrides[$langcode], $langcode);
}

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