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

Breadcrumb

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

function Message::toString

Same name in this branch
  1. 11.1.x vendor/guzzlehttp/psr7/src/Message.php \GuzzleHttp\Psr7\Message::toString()

Overrides RawMessage::toString

File

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

Class

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

Namespace

Symfony\Component\Mime

Code

public function toString() : string {
    if (null === ($body = $this->getBody())) {
        $body = new TextPart('');
    }
    return $this->getPreparedHeaders()
        ->toString() . $body->toString();
}
RSS feed
Powered by Drupal