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

Breadcrumb

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

function AbstractMultipartPart::bodyToString

Overrides AbstractPart::bodyToString

File

vendor/symfony/mime/Part/AbstractMultipartPart.php, line 54

Class

AbstractMultipartPart
@author Fabien Potencier <fabien@symfony.com>

Namespace

Symfony\Component\Mime\Part

Code

public function bodyToString() : string {
    $parts = $this->getParts();
    $string = '';
    foreach ($parts as $part) {
        $string .= '--' . $this->getBoundary() . "\r\n" . $part->toString() . "\r\n";
    }
    $string .= '--' . $this->getBoundary() . "--\r\n";
    return $string;
}

API Navigation

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