diff -u b/core/modules/dblog/dblog.admin.inc b/core/modules/dblog/dblog.admin.inc --- b/core/modules/dblog/dblog.admin.inc +++ b/core/modules/dblog/dblog.admin.inc @@ -22,3 +22,23 @@ function dblog_filters() { - return \Drupal\dblog\Form\DblogFilterForm::logFilters(); + $filters = array(); + + foreach (_dblog_get_message_types() as $type) { + $types[$type] = t($type); + } + + if (!empty($types)) { + $filters['type'] = array( + 'title' => t('Type'), + 'where' => "w.type = ?", + 'options' => $types, + ); + } + + $filters['severity'] = array( + 'title' => t('Severity'), + 'where' => 'w.severity = ?', + 'options' => RfcLogLevel::getLevels(), + ); + + return $filters; } diff -u b/core/modules/dblog/src/Controller/DbLogController.php b/core/modules/dblog/src/Controller/DbLogController.php --- b/core/modules/dblog/src/Controller/DbLogController.php +++ b/core/modules/dblog/src/Controller/DbLogController.php @@ -303,7 +303,6 @@ if (empty($_SESSION['dblog_overview_filter'])) { return; } - $filters = \Drupal\dblog\Form\DblogFilterForm::logFilters(); // Build query. diff -u b/core/modules/dblog/src/Form/DblogFilterForm.php b/core/modules/dblog/src/Form/DblogFilterForm.php --- b/core/modules/dblog/src/Form/DblogFilterForm.php +++ b/core/modules/dblog/src/Form/DblogFilterForm.php @@ -99,8 +99,8 @@ * * @return array * Associative array of filters. The top-level keys are used as the form - * element names for the filters, and the values are arrays with the following - * elements: + * element names for the filters, and the values are arrays with the + * following elements: * - title: Title of the filter. * - where: The filter condition. * - options: Array of options for the select list for the filter.