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

Breadcrumb

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

function TextPart::bodyToString

Overrides AbstractPart::bodyToString

1 method overrides TextPart::bodyToString()
MessagePart::bodyToString in vendor/symfony/mime/Part/MessagePart.php

File

vendor/symfony/mime/Part/TextPart.php, line 146

Class

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

Namespace

Symfony\Component\Mime\Part

Code

public function bodyToString() : string {
    return $this->getEncoder()
        ->encodeString($this->getBody(), $this->charset);
}

API Navigation

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