NewService.php

Same filename in other branches
  1. 8.9.x core/modules/system/tests/modules/new_dependency_test_with_service/src/NewService.php
  2. 10 core/modules/system/tests/modules/new_dependency_test_with_service/src/NewService.php
  3. 11.x core/modules/system/tests/modules/new_dependency_test_with_service/src/NewService.php

Namespace

Drupal\new_dependency_test_with_service

File

core/modules/system/tests/modules/new_dependency_test_with_service/src/NewService.php

View 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

Title Deprecated Summary
NewService Generic service returning a greeting.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.