You are here

protected function BlockPluginTrait::transliteration in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Block/BlockPluginTrait.php \Drupal\Core\Block\BlockPluginTrait::transliteration()
  2. 10 core/lib/Drupal/Core/Block/BlockPluginTrait.php \Drupal\Core\Block\BlockPluginTrait::transliteration()

Wraps the transliteration service.

Return value

\Drupal\Component\Transliteration\TransliterationInterface

File

core/lib/Drupal/Core/Block/BlockPluginTrait.php, line 267

Class

BlockPluginTrait
Provides the base implementation of a block plugin.

Namespace

Drupal\Core\Block

Code

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