dblog.module
Same filename in other branches
File
-
core/
modules/ dblog/ dblog.module
View source
<?php
/**
* @file
*/
/**
* Gathers a list of uniquely defined database log message types.
*
* @return array
* List of uniquely defined database log message types.
*/
function _dblog_get_message_types() {
return \Drupal::database()->query('SELECT DISTINCT([type]) FROM {watchdog} ORDER BY [type]')
->fetchAllKeyed(0, 0);
}
Functions
Title | Deprecated | Summary |
---|---|---|
_dblog_get_message_types | Gathers a list of uniquely defined database log message types. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.