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

Breadcrumb

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

function SMimePart::__sleep

File

vendor/symfony/mime/Part/SMimePart.php, line 87

Class

SMimePart
@author Sebastiaan Stok <s.stok@rollerscapes.net>

Namespace

Symfony\Component\Mime\Part

Code

public function __sleep() : array {
    // convert iterables to strings for serialization
    if (is_iterable($this->body)) {
        $this->body = $this->bodyToString();
    }
    $this->_headers = $this->getHeaders();
    return [
        '_headers',
        'body',
        'type',
        'subtype',
        'parameters',
    ];
}

API Navigation

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