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

Breadcrumb

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

function JsonEncoderContextBuilder::withDecodeOptions

Configures the json_decode flags bitmask.

Parameters

positive-int|null $options:

See also

https://www.php.net/manual/en/json.constants.php

File

vendor/symfony/serializer/Context/Encoder/JsonEncoderContextBuilder.php, line 47

Class

JsonEncoderContextBuilder
A helper providing autocompletion for available JsonEncoder options.

Namespace

Symfony\Component\Serializer\Context\Encoder

Code

public function withDecodeOptions(?int $options) : static {
    return $this->with(JsonDecode::OPTIONS, $options);
}
RSS feed
Powered by Drupal