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

Breadcrumb

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

function TextPart::addEncoder

File

vendor/symfony/mime/Part/TextPart.php, line 223

Class

TextPart
@author Fabien Potencier <fabien@symfony.com>

Namespace

Symfony\Component\Mime\Part

Code

public static function addEncoder(ContentEncoderInterface $encoder) : void {
    if (\in_array($encoder->getName(), self::DEFAULT_ENCODERS, true)) {
        throw new InvalidArgumentException('You are not allowed to change the default encoders ("quoted-printable", "base64", and "8bit").');
    }
    self::$encoders[$encoder->getName()] = $encoder;
}
RSS feed
Powered by Drupal