public function ExampleService::test in Coder 8.2
Same name and namespace in other branches
- 8.3 tests/DrupalPractice/Objects/drupal8/ExampleService.php \Drupal\testmodule\ExampleService::test()
- 8.3.x tests/DrupalPractice/Objects/drupal8/ExampleService.php \Drupal\testmodule\ExampleService::test()
Using \Drupal here but it should be injected instead.
File
- coder_sniffer/
DrupalPractice/ Test/ Objects/ src/ ExampleService.php, line 15
Class
- ExampleService
- Some service.
Namespace
Drupal\testmoduleCode
public function test() {
return \Drupal::configFactory();
}