You are here

public function ExampleService::test4 in Coder 8.3

Same name and namespace in other branches
  1. 8.3.x tests/DrupalPractice/Objects/drupal8/ExampleService.php \Drupal\testmodule\ExampleService::test4()

t() should not be used, instead we should use the StringTranslationTrait.

File

tests/DrupalPractice/Objects/drupal8/ExampleService.php, line 36

Class

ExampleService
Some service.

Namespace

Drupal\testmodule

Code

public function test4() {
  return t('Test');
}