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

Breadcrumb

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

function Data::dump

Dumps data with a DumperInterface dumper.

File

vendor/symfony/var-dumper/Cloner/Data.php, line 266

Class

Data
@author Nicolas Grekas <p@tchwork.com>

Namespace

Symfony\Component\VarDumper\Cloner

Code

public function dump(DumperInterface $dumper) : void {
    $refs = [
        0,
    ];
    $cursor = new Cursor();
    $cursor->hashType = -1;
    $cursor->attr = $this->context[SourceContextProvider::class] ?? [];
    $label = $this->context['label'] ?? '';
    if ($cursor->attr || '' !== $label) {
        $dumper->dumpScalar($cursor, 'label', $label);
    }
    $cursor->hashType = 0;
    $this->dumpItem($dumper, $cursor, $refs, $this->data[$this->position][$this->key]);
}
RSS feed
Powered by Drupal