You are here

public function StateLogger::getLogs in Preview Link 2.0.x

Same name and namespace in other branches
  1. 2.x tests/modules/preview_link_test/src/StateLogger.php \Drupal\preview_link_test\StateLogger::getLogs()

Gets the captured logs.

Return value

array An array of logs, which contain the arguments passed to log().

1 call to StateLogger::getLogs()
StateLogger::log in tests/modules/preview_link_test/src/StateLogger.php

File

tests/modules/preview_link_test/src/StateLogger.php, line 57

Class

StateLogger
Sends logs to state.

Namespace

Drupal\preview_link_test

Code

public function getLogs() : array {
  return $this->state
    ->get(static::STATE_LOGGER, []);
}