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

Breadcrumb

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

function MailboxHeader::getBodyAsString

Overrides HeaderInterface::getBodyAsString

File

vendor/symfony/mime/Header/MailboxHeader.php, line 64

Class

MailboxHeader
A Mailbox MIME Header for something like Sender (one named address).

Namespace

Symfony\Component\Mime\Header

Code

public function getBodyAsString() : string {
    $str = $this->address
        ->getEncodedAddress();
    if ($name = $this->address
        ->getName()) {
        $str = $this->createPhrase($this, $name, $this->getCharset(), true) . ' <' . $str . '>';
    }
    return $str;
}

API Navigation

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