function NodeNewComments::__construct
Constructs a \Drupal\comment\Plugin\views\field\NodeNewComments object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin ID for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\Core\Database\Connection $database: Database Service Object.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.
\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager service.
Overrides NodeNewComments::__construct
File
-
core/
modules/ comment/ src/ Plugin/ views/ field/ NodeNewComments.php, line 23
Class
- NodeNewComments
- Field handler to display the number of new comments.
Namespace
Drupal\comment\Plugin\views\fieldCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, Connection $database, EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager) {
@trigger_error(__CLASS__ . ' is deprecated in drupal:11.3.0 and is removed from drupal:12.0.0. Use \\Drupal\\history\\Plugin\\views\\field\\NodeNewComments instead. See https://www.drupal.org/node/3542850', E_USER_DEPRECATED);
parent::__construct($configuration, $plugin_id, $plugin_definition, $database, $entity_type_manager, $entity_field_manager);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.