You are here

protected function HistoryUserTimestamp::defineOptions in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/history/src/Plugin/views/field/HistoryUserTimestamp.php \Drupal\history\Plugin\views\field\HistoryUserTimestamp::defineOptions()
  2. 9 core/modules/history/src/Plugin/views/field/HistoryUserTimestamp.php \Drupal\history\Plugin\views\field\HistoryUserTimestamp::defineOptions()

Overrides Node::defineOptions

File

core/modules/history/src/Plugin/views/field/HistoryUserTimestamp.php, line 48

Class

HistoryUserTimestamp
Field handler to display the marker for new content.

Namespace

Drupal\history\Plugin\views\field

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['comments'] = [
    'default' => FALSE,
  ];
  return $options;
}