protected function PHPTransliteration::readLanguageOverrides

Same name in this branch
  1. 9.x drupal/core/lib/Drupal/Component/Transliteration/PHPTransliteration.php \Drupal\Component\Transliteration\PHPTransliteration::readLanguageOverrides()
  2. 9.x drupal/core/lib/Drupal/Core/Transliteration/PHPTransliteration.php \Drupal\Core\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

drupal/core/lib/Drupal/Core/Transliteration/PHPTransliteration.php, line 25
Contains \Drupal\Core\Transliteration\PHPTransliteration.

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.
  drupal_alter('transliteration_overrides', $this->languageOverrides[$langcode], $langcode);
}