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

Breadcrumb

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

function FormDataPart::preparePart

1 call to FormDataPart::preparePart()
FormDataPart::prepareFields in vendor/symfony/mime/Part/Multipart/FormDataPart.php

File

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

Class

FormDataPart
Implements RFC 7578.

Namespace

Symfony\Component\Mime\Part\Multipart

Code

private function preparePart(string $name, string|TextPart $value) : TextPart {
    if (\is_string($value)) {
        return $this->configurePart($name, new TextPart($value, 'utf-8', 'plain', '8bit'));
    }
    return $this->configurePart($name, $value);
}

API Navigation

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