W3cubDocs

/Drupal 8

protected function 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);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Transliteration!PhpTransliteration.php/function/PhpTransliteration::readLanguageOverrides/8.1.x