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

Breadcrumb

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

function YamlEncoderContextBuilder::withInlineThreshold

Configures the threshold to switch to inline YAML.

File

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

Class

YamlEncoderContextBuilder
A helper providing autocompletion for available YamlEncoder options.

Namespace

Symfony\Component\Serializer\Context\Encoder

Code

public function withInlineThreshold(?int $inlineThreshold) : static {
    return $this->with(YamlEncoder::YAML_INLINE, $inlineThreshold);
}

API Navigation

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