class LoggerAwareStub

Same name in other branches
  1. 11.x core/modules/system/tests/modules/logger_aware_test/src/LoggerAwareStub.php \Drupal\logger_aware_test\LoggerAwareStub

A test class that implements LoggerAwareInterface.

Hierarchy

  • class \Drupal\logger_aware_test\LoggerAwareStub implements \Psr\Log\LoggerAwareInterface uses \Psr\Log\LoggerAwareTrait

Expanded class hierarchy of LoggerAwareStub

1 file declares its use of LoggerAwareStub
LoggerAwarePassTest.php in core/modules/system/tests/src/Kernel/DependencyInjection/CompilerPass/LoggerAwarePassTest.php
1 string reference to 'LoggerAwareStub'
logger_aware_test.services.yml in core/modules/system/tests/modules/logger_aware_test/logger_aware_test.services.yml
core/modules/system/tests/modules/logger_aware_test/logger_aware_test.services.yml
2 services use LoggerAwareStub
logger_aware_test.logger_aware_existing in core/modules/system/tests/modules/logger_aware_test/logger_aware_test.services.yml
Drupal\logger_aware_test\LoggerAwareStub
logger_aware_test.logger_aware_stub in core/modules/system/tests/modules/logger_aware_test/logger_aware_test.services.yml
Drupal\logger_aware_test\LoggerAwareStub

File

core/modules/system/tests/modules/logger_aware_test/src/LoggerAwareStub.php, line 14

Namespace

Drupal\logger_aware_test
View source
class LoggerAwareStub implements LoggerAwareInterface {
    use LoggerAwareTrait;
    
    /**
     * Gets the logger.
     */
    public function getLogger() : LoggerInterface {
        return $this->logger;
    }

}

Members

Title Sort descending Modifiers Object type Summary
LoggerAwareStub::getLogger public function Gets the logger.

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