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

Breadcrumb

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

function DataPart::setContentId

Return value

$this

File

vendor/symfony/mime/Part/DataPart.php, line 66

Class

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

Namespace

Symfony\Component\Mime\Part

Code

public function setContentId(string $cid) : static {
    if (!str_contains($cid, '@')) {
        throw new InvalidArgumentException(\sprintf('The "%s" CID is invalid as it doesn\'t contain an "@".', $cid));
    }
    $this->cid = $cid;
    return $this;
}
RSS feed
Powered by Drupal