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

Breadcrumb

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

function PrettyPrinterAbstract::prettyPrintExpr

Pretty prints an expression.

Parameters

Expr $node Expression node:

Return value

string Pretty printed node

Overrides PrettyPrinter::prettyPrintExpr

File

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

Class

PrettyPrinterAbstract

Namespace

PhpParser

Code

public function prettyPrintExpr(Expr $node) : string {
    $this->resetState();
    return $this->handleMagicTokens($this->p($node));
}

API Navigation

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