Mercurial > hg > cmmr2012-drupal-site
comparison core/modules/dblog/tests/src/Functional/FakeLogEntries.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | a9cd425dd02b |
children |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
25 * - 'message': String containing a message to be output to the log. | 25 * - 'message': String containing a message to be output to the log. |
26 * A simple default message is used if not provided. | 26 * A simple default message is used if not provided. |
27 * - 'variables': Array of variables that match the message string. | 27 * - 'variables': Array of variables that match the message string. |
28 * - 'severity': Log severity level as defined in logging_severity_levels. | 28 * - 'severity': Log severity level as defined in logging_severity_levels. |
29 * - 'link': String linking to view the result of the event. | 29 * - 'link': String linking to view the result of the event. |
30 * - 'user': String identifying the username. | |
31 * - 'uid': Int identifying the user id for the user. | 30 * - 'uid': Int identifying the user id for the user. |
32 * - 'request_uri': String identifying the location of the request. | 31 * - 'request_uri': String identifying the location of the request. |
33 * - 'referer': String identifying the referring url. | 32 * - 'referer': String identifying the referring url. |
34 * - 'ip': String The ip address of the client machine triggering the log | 33 * - 'ip': String The ip address of the client machine triggering the log |
35 * entry. | 34 * entry. |
45 'channel' => 'custom', | 44 'channel' => 'custom', |
46 'message' => 'Dblog test log message', | 45 'message' => 'Dblog test log message', |
47 'variables' => [], | 46 'variables' => [], |
48 'severity' => RfcLogLevel::NOTICE, | 47 'severity' => RfcLogLevel::NOTICE, |
49 'link' => NULL, | 48 'link' => NULL, |
50 'user' => $user, | |
51 'uid' => $user->id(), | 49 'uid' => $user->id(), |
52 'request_uri' => $base_root . \Drupal::request()->getRequestUri(), | 50 'request_uri' => $base_root . \Drupal::request()->getRequestUri(), |
53 'referer' => \Drupal::request()->server->get('HTTP_REFERER'), | 51 'referer' => \Drupal::request()->server->get('HTTP_REFERER'), |
54 'ip' => '127.0.0.1', | 52 'ip' => '127.0.0.1', |
55 'timestamp' => REQUEST_TIME, | 53 'timestamp' => REQUEST_TIME, |