You are here

public function AssetMetadataHelper::setMetadataXmpFields in Media: Acquia DAM 8

Set the available XMP metadata fields.

<code> [ 'xmp_caption' => [ 'name' => 'Caption/Abstract', 'label' => 'Caption/Description', 'type' => 'textarea', ], 'xmp_byline' => [ 'name' => 'By-line', 'label' => 'Photographer', 'type' => 'text', ], ] </code>

Parameters

array $fields: Sets the available XMP metadata fields.

1 call to AssetMetadataHelper::setMetadataXmpFields()
AssetMetadataHelper::getMetadataXmpFields in src/Service/AssetMetadataHelper.php
Get the available XMP metadata fields.

File

src/Service/AssetMetadataHelper.php, line 87

Class

AssetMetadataHelper
Class AssetMetadataHelper.

Namespace

Drupal\media_acquiadam\Service

Code

public function setMetadataXmpFields(array $fields = []) {
  $this->xmpMetadataFields = $fields;
}