public function ExampleClass::test2 in Coder 8.3.x
Same name and namespace in other branches
- 8.3 tests/DrupalPractice/Objects/drupal8/ExampleClass.php \Drupal\testmodule\ExampleClass::test2()
Loading nodes directly is allowed since we cannot access the container.
File
- tests/
DrupalPractice/ Objects/ drupal8/ ExampleClass.php, line 22
Class
- ExampleClass
- A class which is not a service.
Namespace
Drupal\testmoduleCode
public function test2() {
return Node::load(1);
}