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

Breadcrumb

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

function ProblemNormalizerContextBuilder::withStatusCode

Configure the status field of normalized data.

File

vendor/symfony/serializer/Context/Normalizer/ProblemNormalizerContextBuilder.php, line 46

Class

ProblemNormalizerContextBuilder
A helper providing autocompletion for available ProblemNormalizer options.

Namespace

Symfony\Component\Serializer\Context\Normalizer

Code

public function withStatusCode(int|string|null $statusCode) : static {
    return $this->with(ProblemNormalizer::STATUS, $statusCode);
}
RSS feed
Powered by Drupal