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

Breadcrumb

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

function PrettyPrinterAbstract::pCommaSeparated

Pretty prints an array of nodes and implodes the printed values with commas.

Parameters

Node[] $nodes Array of Nodes to be printed:

Return value

string Comma separated pretty printed nodes

21 calls to PrettyPrinterAbstract::pCommaSeparated()
Standard::pAttribute in vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php
Standard::pAttributeGroup in vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php
Standard::pClassCommon 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_Isset in vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php

... See full list

File

vendor/nikic/php-parser/lib/PhpParser/PrettyPrinterAbstract.php, line 485

Class

PrettyPrinterAbstract

Namespace

PhpParser

Code

protected function pCommaSeparated(array $nodes) : string {
    return $this->pImplode($nodes, ', ');
}

API Navigation

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