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

Breadcrumb

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

function NodeDumper::__construct

Constructs a NodeDumper.

Supported options:

  • bool dumpComments: Whether comments should be dumped.
  • bool dumpPositions: Whether line/offset information should be dumped. To dump offset information, the code needs to be passed to dump().
  • bool dumpOtherAttributes: Whether non-comment, non-position attributes should be dumped.

Parameters

array $options Options (see description):

File

vendor/nikic/php-parser/lib/PhpParser/NodeDumper.php, line 44

Class

NodeDumper

Namespace

PhpParser

Code

public function __construct(array $options = []) {
    $this->dumpComments = !empty($options['dumpComments']);
    $this->dumpPositions = !empty($options['dumpPositions']);
    $this->dumpOtherAttributes = !empty($options['dumpOtherAttributes']);
}

API Navigation

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