public function NodeNewComments::buildOptionsForm in Views (for Drupal 7) 8.3
Default options form that provides the label widget that all fields should have.
Overrides Numeric::buildOptionsForm
File
- lib/
Views/ comment/ Plugin/ views/ field/ NodeNewComments.php, line 45 - Definition of Views\comment\Plugin\views\field\NodeNewComments.
Class
- NodeNewComments
- Field handler to display the number of new comments.
Namespace
Views\comment\Plugin\views\fieldCode
public function buildOptionsForm(&$form, &$form_state) {
$form['link_to_comment'] = array(
'#title' => t('Link this field to new comments'),
'#description' => t("Enable to override this field's links."),
'#type' => 'checkbox',
'#default_value' => $this->options['link_to_comment'],
);
parent::buildOptionsForm($form, $form_state);
}