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

Breadcrumb

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

function DateHeader::getBodyAsString

Overrides HeaderInterface::getBodyAsString

File

vendor/symfony/mime/Header/DateHeader.php, line 58

Class

DateHeader
A Date MIME Header.

Namespace

Symfony\Component\Mime\Header

Code

public function getBodyAsString() : string {
    return $this->dateTime
        ->format(\DateTimeInterface::RFC2822);
}

API Navigation

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