protected function FrontendEnvironmentBase::transliteration in Build Hooks 3.x
Same name and namespace in other branches
- 8.2 src/Plugin/FrontendEnvironmentBase.php \Drupal\build_hooks\Plugin\FrontendEnvironmentBase::transliteration()
Wraps the transliteration service.
Return value
\Drupal\Component\Transliteration\TransliterationInterface The transliteration service.
File
- src/
Plugin/ FrontendEnvironmentBase.php, line 174
Class
- FrontendEnvironmentBase
- Base class for Frontend environment plugins.
Namespace
Drupal\build_hooks\PluginCode
protected function transliteration() {
if (!$this->transliteration) {
$this->transliteration = \Drupal::transliteration();
}
return $this->transliteration;
}