private function JsonDecode::resolveContext

Merges the default options of the Json Decoder with the passed context.

Parameters

array $context:

Return value

array

1 call to JsonDecode::resolveContext()
JsonDecode::decode in drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Encoder/JsonDecode.php
Decodes data.

File

drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Encoder/JsonDecode.php, line 121

Class

JsonDecode
Decodes JSON data

Namespace

Symfony\Component\Serializer\Encoder

Code

private function resolveContext(array $context) {
  $defaultOptions = array(
    'json_decode_associative' => $this->associative,
    'json_decode_recursion_depth' => $this->recursionDepth,
    'json_decode_options' => 0,
  );
  return array_merge($defaultOptions, $context);
}