3 namespace Drupal\dblog\Plugin\views\wizard;
5 use Drupal\views\Plugin\views\wizard\WizardPluginBase;
8 * Defines a wizard for the watchdog table.
13 * base_table = "watchdog",
14 * title = @Translation("Log entries")
17 class Watchdog extends WizardPluginBase {
20 * Set the created column.
24 protected $createdColumn = 'timestamp';
29 protected function defaultDisplayOptions() {
30 $display_options = parent::defaultDisplayOptions();
32 // Add permission-based access control.
33 $display_options['access']['type'] = 'perm';
34 $display_options['access']['options']['perm'] = 'access site reports';
36 return $display_options;