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

Breadcrumb

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

function YamlEncoderContextBuilder::withIndentLevel

Configures the indentation level.

Must be positive.

Parameters

int<0, max>|null $indentLevel:

File

vendor/symfony/serializer/Context/Encoder/YamlEncoderContextBuilder.php, line 46

Class

YamlEncoderContextBuilder
A helper providing autocompletion for available YamlEncoder options.

Namespace

Symfony\Component\Serializer\Context\Encoder

Code

public function withIndentLevel(?int $indentLevel) : static {
    return $this->with(YamlEncoder::YAML_INDENT, $indentLevel);
}

API Navigation

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