function dblog_views_pre_render

Same name in other branches
  1. 9 core/modules/dblog/dblog.module \dblog_views_pre_render()
  2. 8.9.x core/modules/dblog/dblog.module \dblog_views_pre_render()
  3. 11.x core/modules/dblog/dblog.module \dblog_views_pre_render()

Implements hook_views_pre_render().

File

core/modules/dblog/dblog.module, line 116

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.