public function HistoryUserTimestamp::buildOptionsForm in Views (for Drupal 7) 8.3
Provide link to node option
Overrides Node::buildOptionsForm
File
- lib/
Views/ node/ Plugin/ views/ field/ HistoryUserTimestamp.php, line 49 - Definition of Views\node\Plugin\views\field\HistoryUserTimestamp.
Class
- HistoryUserTimestamp
- Field handler to display the marker for new content.
Namespace
Views\node\Plugin\views\fieldCode
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',
);
}
}