NewService.php in Drupal 10
Same filename and directory in other branches
Namespace
Drupal\new_dependency_test_with_serviceFile
core/modules/system/tests/modules/new_dependency_test_with_service/src/NewService.phpView source
<?php
namespace Drupal\new_dependency_test_with_service;
/**
* Generic service returning a greeting.
*/
class NewService {
/**
* Get a simple greeting.
*
* @return string
* The greeting provided by the new service.
*/
public function greet() {
return 'Hello';
}
}
Classes
Name | Description |
---|---|
NewService | Generic service returning a greeting. |