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

Breadcrumb

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

function AbstractMultipartPart::bodyToIterable

Overrides AbstractPart::bodyToIterable

File

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

Class

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

Namespace

Symfony\Component\Mime\Part

Code

public function bodyToIterable() : iterable {
    $parts = $this->getParts();
    foreach ($parts as $part) {
        (yield '--' . $this->getBoundary() . "\r\n");
        yield from $part->toIterable();
        (yield "\r\n");
    }
    (yield '--' . $this->getBoundary() . "--\r\n");
}

API Navigation

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