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

Breadcrumb

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

function Dumper::__construct

Same name in this branch
  1. 11.1.x vendor/symfony/console/Helper/Dumper.php \Symfony\Component\Console\Helper\Dumper::__construct()
  2. 11.1.x vendor/symfony/dependency-injection/Dumper/Dumper.php \Symfony\Component\DependencyInjection\Dumper\Dumper::__construct()

Parameters

int $indentation The amount of spaces to use for indentation of nested nodes:

File

vendor/symfony/yaml/Dumper.php, line 28

Class

Dumper
Dumper dumps PHP variables to YAML strings.

Namespace

Symfony\Component\Yaml

Code

public function __construct(int $indentation = 4) {
    if ($indentation < 1) {
        throw new \InvalidArgumentException('The indentation must be greater than zero.');
    }
}

API Navigation

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