You are here

function dblog_views_pre_render in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/dblog/dblog.module \dblog_views_pre_render()
  2. 10 core/modules/dblog/dblog.module \dblog_views_pre_render()

Implements hook_views_pre_render().

File

core/modules/dblog/dblog.module, line 127
System monitoring and logging for administrators.

Code

function dblog_views_pre_render(ViewExecutable $view) {
  if (isset($view) && $view->storage
    ->get('base_table') == 'watchdog') {
    $view->element['#attached']['library'][] = 'dblog/drupal.dblog';
  }
}