function ExportMetadata::addAttachment
Attaches a file to the exported entity.
Parameters
string $uri: The URI of the file, which may or may not physically exist.
string $name: The name of the exported file.
File
-
core/
lib/ Drupal/ Core/ DefaultContent/ ExportMetadata.php, line 91
Class
- ExportMetadata
- Collects metadata about an entity being exported.
Namespace
Drupal\Core\DefaultContentCode
public function addAttachment(string $uri, string $name) : void {
$this->attachments[$uri] = $name;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.