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

Breadcrumb

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

function ParameterizedHeader::__construct

Overrides UnstructuredHeader::__construct

File

vendor/symfony/mime/Header/ParameterizedHeader.php, line 31

Class

ParameterizedHeader
@author Chris Corbyn

Namespace

Symfony\Component\Mime\Header

Code

public function __construct(string $name, string $value, array $parameters = []) {
    parent::__construct($name, $value);
    foreach ($parameters as $k => $v) {
        $this->setParameter($k, $v);
    }
    if ('content-type' !== strtolower($name)) {
        $this->encoder = new Rfc2231Encoder();
    }
}

API Navigation

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