DbUpdateController

Controller routines for database update routes. Hierarchy class \Drupal\Core\Controller\ControllerBase implements ContainerInjectionInterface uses LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\system\Controller\DbUpdateController File core/modules/system/src/Controller/DbUpdateController.php, line 22 Namespace Drupal\system\Controller Members Name Modifiers Type Description ControllerBase::$configFacto

dblog_views_data

dblog_views_data() Implements hook_views_data(). File core/modules/dblog/dblog.views.inc, line 11 Provide views data for dblog.module. Code function dblog_views_data() { $data = array(); $data['watchdog']['table']['group'] = t('Watchdog'); $data['watchdog']['table']['wizard_id'] = 'watchdog'; $data['watchdog']['table']['base'] = array( 'field' => 'wid', 'title' => t('Log entries'), 'help' => t('Contains a list of log entries.'), ); $data['watchdog']['wid']

dblog_schema

dblog_schema() Implements hook_schema(). File core/modules/dblog/dblog.install, line 11 Install, update and uninstall functions for the dblog module. Code function dblog_schema() { $schema['watchdog'] = array( 'description' => 'Table that contains logs of all system events.', 'fields' => array( 'wid' => array( 'type' => 'serial', 'not null' => TRUE, 'description' => 'Primary Key: Unique watchdog event ID.', ), 'uid' => a

dblog_menu_links_discovered_alter

dblog_menu_links_discovered_alter(&$links) Implements hook_menu_links_discovered_alter(). File core/modules/dblog/dblog.module, line 42 System monitoring and logging for administrators. Code function dblog_menu_links_discovered_alter(&$links) { if (\Drupal::moduleHandler()->moduleExists('search')) { $links['dblog.search'] = array( 'title' => new TranslatableMarkup('Top search phrases'), 'route_name' => 'dblog.search', 'description' => new Translatab

dblog_logging_settings_submit

dblog_logging_settings_submit($form, FormStateInterface $form_state) Form submission handler for system_logging_settings(). See also dblog_form_system_logging_settings_alter() File core/modules/dblog/dblog.module, line 115 System monitoring and logging for administrators. Code function dblog_logging_settings_submit($form, FormStateInterface $form_state) { \Drupal::configFactory()->getEditable('dblog.settings')->set('row_limit', $form_state->getValue('dblog_row_limit'))->save();

dblog_help

dblog_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/dblog/dblog.module, line 19 System monitoring and logging for administrators. Code function dblog_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.dblog': $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The Database Logging module logs system events in the Drupal database. For mor

dblog_form_system_logging_settings_alter

dblog_form_system_logging_settings_alter(&$form, FormStateInterface $form_state) Implements hook_form_FORM_ID_alter() for system_logging_settings(). File core/modules/dblog/dblog.module, line 97 System monitoring and logging for administrators. Code function dblog_form_system_logging_settings_alter(&$form, FormStateInterface $form_state) { $row_limits = array(100, 1000, 10000, 100000, 1000000); $form['dblog_row_limit'] = array( '#type' => 'select', '#title' => t('Dat

dblog_filters

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. File core/modules/dblog/dblog.admin.inc, line 21 Administrative page callbacks for the Database Logging modu

dblog_cron

dblog_cron() Implements hook_cron(). Controls the size of the log table, paring it to 'dblog_row_limit' messages. File core/modules/dblog/dblog.module, line 60 System monitoring and logging for administrators. Code function dblog_cron() { // Cleanup the watchdog table. $row_limit = \Drupal::config('dblog.settings')->get('row_limit'); // For row limit n, get the wid of the nth row in descending wid order. // Counting the most recent n rows avoids issues with wid number sequences,

DblogFilterForm::validateForm

public DblogFilterForm::validateForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormBase::validateForm File core/modules/dblog/src/Form/DblogFilterForm.php, line 66 Class DblogFilterForm Provides the database logging filter form. Namespace Drupal\dblog\Form Code public function vali