17 lines
339 B
PHP
17 lines
339 B
PHP
|
|
<?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);
|
||
|
|
}
|