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

Breadcrumb

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

function TextPart::__sleep

2 calls to TextPart::__sleep()
DataPart::__sleep in vendor/symfony/mime/Part/DataPart.php
DataPart::__sleep in vendor/symfony/mime/Part/DataPart.php
1 method overrides TextPart::__sleep()
DataPart::__sleep in vendor/symfony/mime/Part/DataPart.php

File

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

Class

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

Namespace

Symfony\Component\Mime\Part

Code

public function __sleep() : array {
    // convert resources to strings for serialization
    if (null !== $this->seekable) {
        $this->body = $this->getBody();
        $this->seekable = null;
    }
    $this->_headers = $this->getHeaders();
    return [
        '_headers',
        'body',
        'charset',
        'subtype',
        'disposition',
        'name',
        'encoding',
    ];
}

API Navigation

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