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

Breadcrumb

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

function Data::withMaxDepth

Returns a depth limited clone of $this.

File

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

Class

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

Namespace

Symfony\Component\VarDumper\Cloner

Code

public function withMaxDepth(int $maxDepth) : static {
    $data = clone $this;
    $data->maxDepth = $maxDepth;
    return $data;
}
RSS feed
Powered by Drupal