You are here

NewService.php in Drupal 8

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

Namesort descending Description
NewService Generic service returning a greeting.