function dblog_filters
Same name and namespace in other branches
- 10 core/modules/dblog/dblog.admin.inc \dblog_filters()
- 9 core/modules/dblog/dblog.admin.inc \dblog_filters()
- 8.9.x core/modules/dblog/dblog.admin.inc \dblog_filters()
- 7.x modules/dblog/dblog.admin.inc \dblog_filters()
- main core/modules/dblog/dblog.module \dblog_filters()
Creates a list of database log administration filters that can be applied.
Return value
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:
- title: Title of the filter.
- where: The filter condition.
- options: Array of options for the select list for the filter.
Deprecated
in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(\Drupal\dblog\DbLogFilters::class)->filters() instead.
See also
https://www.drupal.org/node/3560399
File
-
core/
modules/ dblog/ dblog.module, line 37
Code
function dblog_filters() : array {
@trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. Use \\Drupal::service(\\Drupal\\dblog\\DbLogFilters::class)->filters() instead. See https://www.drupal.org/node/3560399', E_USER_DEPRECATED);
return \Drupal::service(DbLogFilters::class)->filters();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.