You are here

public function NewService::greet in Drupal 9

Same name and namespace in other branches
  1. 8 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_service

Code

public function greet() {
  return 'Hello';
}