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

Breadcrumb

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

function CsvEncoderContextBuilder::withHeaders

Configures the headers.

Parameters

list<mixed>|null $headers:

File

vendor/symfony/serializer/Context/Encoder/CsvEncoderContextBuilder.php, line 93

Class

CsvEncoderContextBuilder
A helper providing autocompletion for available CsvEncoder options.

Namespace

Symfony\Component\Serializer\Context\Encoder

Code

public function withHeaders(?array $headers) : static {
    return $this->with(CsvEncoder::HEADERS_KEY, $headers);
}
RSS feed
Powered by Drupal