class LazyService

Same name in this branch
  1. 11.x core/tests/Drupal/Tests/ProxyClass/Core/DependencyInjection/Fixture/LazyService.php \Drupal\Tests\ProxyClass\Core\DependencyInjection\Fixture\LazyService
Same name and namespace in other branches
  1. main core/tests/Drupal/Tests/ProxyClass/Core/DependencyInjection/Fixture/LazyService.php \Drupal\Tests\ProxyClass\Core\DependencyInjection\Fixture\LazyService
  2. main core/tests/Drupal/Tests/Core/DependencyInjection/Fixture/LazyService.php \Drupal\Tests\Core\DependencyInjection\Fixture\LazyService

A service used to test the handling of lazy service definitions.

Hierarchy

  • class \Drupal\Tests\Core\DependencyInjection\Fixture\LazyService

Expanded class hierarchy of LazyService

See also

\Drupal\Tests\ProxyClass\Core\DependencyInjection\Fixture\LazyService

\Drupal\Tests\Core\DependencyInjection\Compiler\ProxyServicesPassTest

1 file declares its use of LazyService
ProxyServicesPassTest.php in core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/ProxyServicesPassTest.php

File

core/tests/Drupal/Tests/Core/DependencyInjection/Fixture/LazyService.php, line 13

Namespace

Drupal\Tests\Core\DependencyInjection\Fixture
View source
class LazyService {
  
  /**
   * Returns a value.
   *
   * @return string
   *   A value.
   */
  public function getValue() : string {
    return 'value';
  }

}

Members

Title Sort descending Modifiers Object type Summary
LazyService::getValue public function Returns a value.

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