public function ExampleService::test3 in Coder 8.2
Same name and namespace in other branches
- 8.3 tests/DrupalPractice/Objects/drupal8/ExampleService.php \Drupal\testmodule\ExampleService::test3()
- 8.3.x tests/DrupalPractice/Objects/drupal8/ExampleService.php \Drupal\testmodule\ExampleService::test3()
t() should not be used, translation service should be injected.
File
- coder_sniffer/
DrupalPractice/ Test/ Objects/ src/ ExampleService.php, line 29
Class
- ExampleService
- Some service.
Namespace
Drupal\testmoduleCode
public function test3() {
return t('Test');
}