5 * Administrative page callbacks for the Database Logging module.
8 use Drupal\Core\Logger\RfcLogLevel;
11 * Creates a list of database log administration filters that can be applied.
14 * Associative array of filters. The top-level keys are used as the form
15 * element names for the filters, and the values are arrays with the following
17 * - title: Title of the filter.
18 * - where: The filter condition.
19 * - options: Array of options for the select list for the filter.
21 function dblog_filters() {
24 foreach (_dblog_get_message_types() as $type) {
25 $types[$type] = t($type);
31 'where' => "w.type = ?",
36 $filters['severity'] = [
37 'title' => t('Severity'),
38 'where' => 'w.severity = ?',
39 'options' => RfcLogLevel::getLevels(),