LoggerAwareStub.php
Same filename in other branches
Namespace
Drupal\logger_aware_testFile
-
core/
modules/ system/ tests/ modules/ logger_aware_test/ src/ LoggerAwareStub.php
View source
<?php
declare (strict_types=1);
namespace Drupal\logger_aware_test;
use Psr\Log\LoggerAwareInterface;
use Psr\Log\LoggerAwareTrait;
use Psr\Log\LoggerInterface;
/**
* A test class that implements LoggerAwareInterface.
*/
class LoggerAwareStub implements LoggerAwareInterface {
use LoggerAwareTrait;
/**
* Gets the logger.
*/
public function getLogger() : LoggerInterface {
return $this->logger;
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
LoggerAwareStub | A test class that implements LoggerAwareInterface. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.