You are here

protected function BlockBase::transliteration in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Block/BlockBase.php \Drupal\Core\Block\BlockBase::transliteration()

Wraps the transliteration service.

Return value

\Drupal\Component\Transliteration\TransliterationInterface

File

core/lib/Drupal/Core/Block/BlockBase.php, line 262
Contains \Drupal\Core\Block\BlockBase.

Class

BlockBase
Defines a base block implementation that most blocks plugins will extend.

Namespace

Drupal\Core\Block

Code

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