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

Breadcrumb

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

function Standard::pMaybeMultiline

Parameters

Node[] $nodes :

12 calls to Standard::pMaybeMultiline()
Standard::pExpr_Array in vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php
Standard::pExpr_ArrowFunction in vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php
Standard::pExpr_Closure in vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php
Standard::pExpr_FuncCall in vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php
Standard::pExpr_List in vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php

... See full list

File

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

Class

Standard

Namespace

PhpParser\PrettyPrinter

Code

protected function pMaybeMultiline(array $nodes, bool $trailingComma = false) : string {
    if (!$this->hasNodeWithComments($nodes)) {
        return $this->pCommaSeparated($nodes);
    }
    else {
        return $this->pCommaSeparatedMultiline($nodes, $trailingComma) . $this->nl;
    }
}

API Navigation

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