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

Breadcrumb

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

function Address::getEncodedName

1 call to Address::getEncodedName()
Address::toString in vendor/symfony/mime/Address.php

File

vendor/symfony/mime/Address.php, line 80

Class

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

Namespace

Symfony\Component\Mime

Code

public function getEncodedName() : string {
    if ('' === $this->getName()) {
        return '';
    }
    return \sprintf('"%s"', preg_replace('/"/u', '\\"', $this->getName()));
}
RSS feed
Powered by Drupal