dblog.module

Same filename in other branches
  1. 7.x modules/dblog/dblog.module
  2. 9 core/modules/dblog/dblog.module
  3. 8.9.x core/modules/dblog/dblog.module
  4. 10 core/modules/dblog/dblog.module

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.