Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. NodeNewComments.php

function NodeNewComments::defineOptions

Overrides NumericField::defineOptions

File

core/modules/comment/src/Plugin/views/field/NodeNewComments.php, line 105

Class

NodeNewComments
Field handler to display the number of new comments.

Namespace

Drupal\comment\Plugin\views\field

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal