Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TestLogger.php

function TestLogger::hasRecords

1 call to TestLogger::hasRecords()
TestLogger::hasRecordThatPasses in vendor/colinodell/psr-testlogger/src/TestLogger.php

File

vendor/colinodell/psr-testlogger/src/TestLogger.php, line 89

Class

TestLogger
Used for testing purposes.

Namespace

ColinODell\PsrTestLogger

Code

public function hasRecords(string|int|null $level = null) : bool {
    if ($level === null) {
        return \count($this->records) !== 0;
    }
    return isset($this->recordsByLevel[$level]);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal