Watchdog.php in Drupal 10
File
core/modules/dblog/src/Plugin/views/wizard/Watchdog.php
View source
<?php
namespace Drupal\dblog\Plugin\views\wizard;
use Drupal\views\Plugin\views\wizard\WizardPluginBase;
class Watchdog extends WizardPluginBase {
protected $createdColumn = 'timestamp';
protected function defaultDisplayOptions() {
$display_options = parent::defaultDisplayOptions();
$display_options['access']['type'] = 'perm';
$display_options['access']['options']['perm'] = 'access site reports';
return $display_options;
}
}
Classes
Name |
Description |
Watchdog |
Defines a wizard for the watchdog table. |