Mercurial > hg > isophonics-drupal-site
view core/modules/dblog/src/Plugin/views/wizard/Watchdog.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 7a779792577d |
children |
line wrap: on
line source
<?php namespace Drupal\dblog\Plugin\views\wizard; use Drupal\views\Plugin\views\wizard\WizardPluginBase; /** * Defines a wizard for the watchdog table. * * @ViewsWizard( * id = "watchdog", * module = "dblog", * base_table = "watchdog", * title = @Translation("Log entries") * ) */ class Watchdog extends WizardPluginBase { /** * Set the created column. * * @var string */ protected $createdColumn = 'timestamp'; /** * {@inheritdoc} */ protected function defaultDisplayOptions() { $display_options = parent::defaultDisplayOptions(); // Add permission-based access control. $display_options['access']['type'] = 'perm'; $display_options['access']['options']['perm'] = 'access site reports'; return $display_options; } }