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

Breadcrumb

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

function Message::toIterable

Overrides RawMessage::toIterable

File

vendor/symfony/mime/Message.php, line 115

Class

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

Namespace

Symfony\Component\Mime

Code

public function toIterable() : iterable {
    if (null === ($body = $this->getBody())) {
        $body = new TextPart('');
    }
    (yield $this->getPreparedHeaders()
        ->toString());
    yield from $body->toIterable();
}
RSS feed
Powered by Drupal