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

Breadcrumb

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

function AbstractObjectNormalizerContextBuilder::withDeepObjectToPopulate

Configures whether to tell the denormalizer to also populate existing objects on attributes of the main object.

Setting this to true is only useful if you also specify the root object in AbstractNormalizer::OBJECT_TO_POPULATE.

File

vendor/symfony/serializer/Context/Normalizer/AbstractObjectNormalizerContextBuilder.php, line 118

Class

AbstractObjectNormalizerContextBuilder
A helper providing autocompletion for available AbstractObjectNormalizer options.

Namespace

Symfony\Component\Serializer\Context\Normalizer

Code

public function withDeepObjectToPopulate(?bool $deepObjectToPopulate) : static {
    return $this->with(AbstractObjectNormalizer::DEEP_OBJECT_TO_POPULATE, $deepObjectToPopulate);
}

API Navigation

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