WatchdogTrait
trait WatchdogTrait (View source)
Properties
| protected Connection | $connection | ||
| protected LoggerInterface | $logger |
Methods
array
where(string|null $type = null, $severity = null, string|null $filter = null, string $criteria = 'AND', int|string|null $severity_min = null)
Build a WHERE snippet based on given parameters.
static array
messageTypes()
Helper function to obtain the message types based on drupal version.
Details
protected array
where(string|null $type = null, $severity = null, string|null $filter = null, string $criteria = 'AND', int|string|null $severity_min = null)
Build a WHERE snippet based on given parameters.
Example: ('where' => string, 'args' => [])
protected stdClass
formatResult(stdClass $result, bool $extended = false)
Format a watchdog database row.
static array
messageTypes()
Helper function to obtain the message types based on drupal version.