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

Breadcrumb

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

function CliDumper::dumpEllipsis

Dumps an ellipsis for cut children.

Parameters

bool $hasChild When the dump of the hash has child item:

int $cut The number of items the hash has been cut by:

2 calls to CliDumper::dumpEllipsis()
CliDumper::leaveHash in vendor/symfony/var-dumper/Dumper/CliDumper.php
Dumps while leaving an hash.
HtmlDumper::leaveHash in vendor/symfony/var-dumper/Dumper/HtmlDumper.php
Dumps while leaving an hash.

File

vendor/symfony/var-dumper/Dumper/CliDumper.php, line 329

Class

CliDumper
CliDumper dumps variables for command line output.

Namespace

Symfony\Component\VarDumper\Dumper

Code

protected function dumpEllipsis(Cursor $cursor, bool $hasChild, int $cut) : void {
    if ($cut) {
        $this->line .= ' …';
        if (0 < $cut) {
            $this->line .= $cut;
        }
        if ($hasChild) {
            $this->dumpLine($cursor->depth + 1);
        }
    }
}

API Navigation

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