public function NewService::greet in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/new_dependency_test_with_service/src/NewService.php \Drupal\new_dependency_test_with_service\NewService::greet()
- 9 core/modules/system/tests/modules/new_dependency_test_with_service/src/NewService.php \Drupal\new_dependency_test_with_service\NewService::greet()
Get a simple greeting.
Return value
string The greeting provided by the new service.
File
- core/
modules/ system/ tests/ modules/ new_dependency_test_with_service/ src/ NewService.php, line 16
Class
- NewService
- Generic service returning a greeting.
Namespace
Drupal\new_dependency_test_with_serviceCode
public function greet() {
return 'Hello';
}