Drupal Test Helpers module API documentation - release 1.5.0

LoggerChannelFactoryStub extends LoggerChannelFactory
in package

A stub of the Drupal's default LoggerChannelFactory class.

@package TestHelpers\DrupalServiceStubs

Table of Contents

Properties

$staticLogger  : StaticLogger
A static logger instance.

Methods

__construct()  : mixed
Constructs a new LoggerChannelFactory class.
stubGetLogs()  : array<string|int, mixed>
Returns the array with all collected logs.

Properties

Methods

__construct()

Constructs a new LoggerChannelFactory class.

public __construct([RequestStack|null $requestStack = NULL ][, AccountInterface|null $currentUser = NULL ]) : mixed
Parameters
$requestStack : RequestStack|null = NULL
$currentUser : AccountInterface|null = NULL

stubGetLogs()

Returns the array with all collected logs.

public stubGetLogs() : array<string|int, mixed>
Return values
array<string|int, mixed>

The array of logs.


        
On this page

Search results