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

Breadcrumb

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

function Standard::hasNodeWithComments

Parameters

Node[] $nodes:

1 call to Standard::hasNodeWithComments()
Standard::pMaybeMultiline in vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php

File

vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php, line 1164

Class

Standard

Namespace

PhpParser\PrettyPrinter

Code

protected function hasNodeWithComments(array $nodes) : bool {
    foreach ($nodes as $node) {
        if ($node && $node->getComments()) {
            return true;
        }
    }
    return false;
}

API Navigation

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