You are here

protected function FrontendEnvironmentBase::transliteration in Build Hooks 8.2

Same name and namespace in other branches
  1. 3.x 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 173

Class

FrontendEnvironmentBase
Base class for Frontend environment plugins.

Namespace

Drupal\build_hooks\Plugin

Code

protected function transliteration() {
  if (!$this->transliteration) {
    $this->transliteration = \Drupal::transliteration();
  }
  return $this->transliteration;
}