function ExportMetadata::getAttachments

Returns the files attached to this entity.

Return value

array<string, string> The keys are the files' current URIs, and the values are the names of the files when they are exported.

File

core/lib/Drupal/Core/DefaultContent/ExportMetadata.php, line 102

Class

ExportMetadata
Collects metadata about an entity being exported.

Namespace

Drupal\Core\DefaultContent

Code

public function getAttachments() : array {
  return $this->attachments;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.