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

Breadcrumb

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

function MessagePart::__construct

Overrides DataPart::__construct

1 call to MessagePart::__construct()
MessagePart::__wakeup in vendor/symfony/mime/Part/MessagePart.php

File

vendor/symfony/mime/Part/MessagePart.php, line 24

Class

MessagePart
@final

Namespace

Symfony\Component\Mime\Part

Code

public function __construct(RawMessage $message) {
    if ($message instanceof Message) {
        $name = $message->getHeaders()
            ->getHeaderBody('Subject') . '.eml';
    }
    else {
        $name = 'email.eml';
    }
    parent::__construct('', $name);
}

API Navigation

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