Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DblogHooks.php

function DblogHooks::viewsPreRender

Implements hook_views_pre_render().

File

core/modules/dblog/src/Hook/DblogHooks.php, line 102

Class

DblogHooks
Hook implementations for dblog.

Namespace

Drupal\dblog\Hook

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal