public function HistoryUserTimestamp::buildOptionsForm

Provide link to node option

Overrides Node::buildOptionsForm

File

drupal/core/modules/history/lib/Drupal/history/Plugin/views/field/HistoryUserTimestamp.php, line 51
Contains \Drupal\history\Plugin\views\field\HistoryUserTimestamp.

Class

HistoryUserTimestamp
Field handler to display the marker for new content.

Namespace

Drupal\history\Plugin\views\field

Code

public function buildOptionsForm(&$form, &$form_state) {
  parent::buildOptionsForm($form, $form_state);
  if (module_exists('comment')) {
    $form['comments'] = array(
      '#type' => 'checkbox',
      '#title' => t('Check for new comments as well'),
      '#default_value' => !empty($this->options['comments']),
      '#fieldset' => 'more',
    );
  }
}