You are here

public static function Drupal::translation in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal.php \Drupal::translation()

Returns the string translation service.

Return value

\Drupal\Core\StringTranslation\TranslationManager The string translation manager.

2 calls to Drupal::translation()
DrupalTest::testTranslation in core/tests/Drupal/Tests/Core/DrupalTest.php
Tests the translation() method.
_simpletest_build_summary_line in core/modules/simpletest/simpletest.module
Formats each test result type pluralized summary.

File

core/lib/Drupal.php, line 584
Contains \Drupal.

Class

Drupal
Static Service Container wrapper.

Code

public static function translation() {
  return static::getContainer()
    ->get('string_translation');
}