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.
22 protected $createdColumn = 'timestamp';
27 protected function defaultDisplayOptions() {
28 $display_options = parent::defaultDisplayOptions();
30 // Add permission-based access control.
31 $display_options['access']['type'] = 'perm';
32 $display_options['access']['options']['perm'] = 'access site reports';
34 return $display_options;