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

Breadcrumb

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

function Node::getComments

Gets all comments directly preceding this node.

The comments are also available through the "comments" attribute.

Return value

Comment[]

1 method overrides Node::getComments()
NodeAbstract::getComments in vendor/nikic/php-parser/lib/PhpParser/NodeAbstract.php
Gets all comments directly preceding this node.

File

vendor/nikic/php-parser/lib/PhpParser/Node.php, line 98

Class

Node

Namespace

PhpParser

Code

public function getComments() : array;
RSS feed
Powered by Drupal