W3cubDocs

/Drupal 8

protected function BlockBase::transliteration

protected BlockBase::transliteration()

Wraps the transliteration service.

Return value

\Drupal\Component\Transliteration\TransliterationInterface

File

core/lib/Drupal/Core/Block/BlockBase.php, line 257

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;
}

© 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!Block!BlockBase.php/function/BlockBase::transliteration/8.1.x