You are here

function Logger::eventLoad in MongoDB 8

Load a MongoDB watchdog event.

Parameters

string $id:

Return value

object|FALSE

File

src/Logger/Logger.php, line 130
Logger functionality (watchdog).

Class

Logger
MongoDB logger implementation for watchdog().

Namespace

Drupal\mongodb\Logger

Code

function eventLoad($id) {
  $result = $this
    ->templatesCollection()
    ->findOne(array(
    '_id' => $id,
  ));
  return $result ? $result : FALSE;
}