function DbLogFilters::getMessageTypes
Same name and namespace in other branches
- 11.x core/modules/dblog/src/DbLogFilters.php \Drupal\dblog\DbLogFilters::getMessageTypes()
Gathers a list of uniquely defined database log message types.
Return value
array List of uniquely defined database log message types.
1 call to DbLogFilters::getMessageTypes()
- DbLogFilters::filters in core/
modules/ dblog/ src/ DbLogFilters.php - Creates a list of database log administration filters that can be applied.
File
-
core/
modules/ dblog/ src/ DbLogFilters.php, line 26
Class
- DbLogFilters
- Filter methods for the dblog module.
Namespace
Drupal\dblogCode
public function getMessageTypes() : array {
return $this->connection
->query('SELECT DISTINCT([type]) FROM {watchdog} ORDER BY [type]')
->fetchAllKeyed(0, 0);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.