public function ExampleClass::test4 in Coder 8.3
Same name and namespace in other branches
- 8.3.x tests/DrupalPractice/Objects/drupal8/ExampleClass.php \Drupal\testmodule\ExampleClass::test4()
t() should not be used, instead we should use the StringTranslationTrait.
File
- tests/
DrupalPractice/ Objects/ drupal8/ ExampleClass.php, line 36
Class
- ExampleClass
- A class which is not a service.
Namespace
Drupal\testmoduleCode
public function test4() {
return t('Test');
}