PhpTransliteration::readLanguageOverrides

protected PhpTransliteration::readLanguageOverrides($langcode)

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 45

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);
}
doc_Drupal
2016-10-29 09:34:07
Comments
Leave a Comment

Please login to continue.