public function NodeNewComments::buildOptionsForm

Default options form that provides the label widget that all fields should have.

Overrides Numeric::buildOptionsForm

File

drupal/core/modules/comment/lib/Drupal/comment/Plugin/views/field/NodeNewComments.php, line 45
Definition of Drupal\comment\Plugin\views\field\NodeNewComments.

Class

NodeNewComments
Field handler to display the number of new comments.

Namespace

Drupal\comment\Plugin\views\field

Code

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);
}