public function eventDetails($event_id) { $dblog =
$this->database->
query('SELECT [w].*, [u].[uid] FROM {watchdog} [w] LEFT JOIN {users} [u] ON [u].[uid] = [w].[uid] WHERE [w].[wid] = :id',
[':id' =>
$event_id])->
fetchObject();
if (empty($dblog)) { throw new NotFoundHttpException();
} $build =
[];
$severity = RfcLogLevel::
getLevels();
$message =
$this->
formatMessage($dblog);
$username =
[ '#theme' => 'username',
'#account' =>
$dblog->uid ?
$this->userStorage->
load($dblog->uid
) : User::
getAnonymousUser(),
];
$rows =
[ [ ['data' =>
$this->
t('Type'
), 'header' => TRUE
],
$this->
t($dblog->type
),
],
[ [