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

Breadcrumb

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

function CsvEncoder::__construct

File

vendor/symfony/serializer/Encoder/CsvEncoder.php, line 57

Class

CsvEncoder
Encodes CSV data.

Namespace

Symfony\Component\Serializer\Encoder

Code

public function __construct(array $defaultContext = []) {
    if (\array_key_exists(self::ESCAPE_CHAR_KEY, $defaultContext)) {
        trigger_deprecation('symfony/serializer', '7.2', 'Setting the "csv_escape_char" option is deprecated. The option will be removed in 8.0.');
    }
    $this->defaultContext = array_merge($this->defaultContext, $defaultContext);
}
RSS feed
Powered by Drupal