function LoggerFilterForm::getFilters in MongoDB 8
2 calls to LoggerFilterForm::getFilters()
- LoggerFilterForm::buildForm in src/
Form/ LoggerFilterForm.php - Form constructor.
- LoggerFilterForm::submitForm in src/
Form/ LoggerFilterForm.php - Form submission handler.
File
- src/
Form/ LoggerFilterForm.php, line 134 - Contains \Drupal\mongodb\Form\DblogFilterForm.
Class
- LoggerFilterForm
- Provides the MongoDB logging filter form.
Namespace
Drupal\mongodb\FormCode
function getFilters() {
$filters = array();
foreach ($this
->getMessageTypes() as $type) {
$types[$type] = $type;
}
if (!empty($types)) {
$filters['type'] = array(
'title' => t('Type'),
'options' => $types,
);
}
$filters['severity'] = array(
'title' => t('Severity'),
'options' => watchdog_severity_levels(),
);
return $filters;
}