public function InjectedService::greet in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/new_dependency_test/src/InjectedService.php \Drupal\new_dependency_test\InjectedService::greet()
- 9 core/modules/system/tests/modules/new_dependency_test/src/InjectedService.php \Drupal\new_dependency_test\InjectedService::greet()
Get the simple greeting from the service.
Return value
string The greeting.
File
- core/
modules/ system/ tests/ modules/ new_dependency_test/ src/ InjectedService.php, line 35
Class
- InjectedService
- Generic service with a dependency on a service defined in a new module.
Namespace
Drupal\new_dependency_testCode
public function greet() {
return $this->service
->greet();
}