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

Breadcrumb

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

function Headers::all

2 calls to Headers::all()
Headers::setMaxLineLength in vendor/symfony/mime/Header/Headers.php
Headers::toArray in vendor/symfony/mime/Header/Headers.php

File

vendor/symfony/mime/Header/Headers.php, line 193

Class

Headers
A collection of headers.

Namespace

Symfony\Component\Mime\Header

Code

public function all(?string $name = null) : iterable {
    if (null === $name) {
        foreach ($this->headers as $name => $collection) {
            foreach ($collection as $header) {
                (yield $name => $header);
            }
        }
    }
    elseif (isset($this->headers[strtolower($name)])) {
        foreach ($this->headers[strtolower($name)] as $header) {
            (yield $header);
        }
    }
}

API Navigation

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