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

Breadcrumb

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

function FormDataPart::__construct

Parameters

array<string|array|DataPart> $fields:

Overrides AbstractMultipartPart::__construct

File

vendor/symfony/mime/Part/Multipart/FormDataPart.php, line 29

Class

FormDataPart
Implements RFC 7578.

Namespace

Symfony\Component\Mime\Part\Multipart

Code

public function __construct(array $fields = []) {
    parent::__construct();
    // HTTP does not support \r\n in header values
    $this->getHeaders()
        ->setMaxLineLength(\PHP_INT_MAX);
}

API Navigation

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