You are here

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

Get the available XMP metadata fields.

Also check if the xmpMetadatafiels are not set call the acquiadam.

Return value

array The xmpMetadataFields array.

2 calls to AssetMetadataHelper::getMetadataXmpFields()
AssetMetadataHelper::getMetadataAttributeLabels in src/Service/AssetMetadataHelper.php
Get the available metadata attribute labels.
AssetMetadataHelper::getMetadataFromAsset in src/Service/AssetMetadataHelper.php
Gets a metadata item from the given asset.

File

src/Service/AssetMetadataHelper.php, line 99

Class

AssetMetadataHelper
Class AssetMetadataHelper.

Namespace

Drupal\media_acquiadam\Service

Code

public function getMetadataXmpFields() {
  if (is_null($this->xmpMetadataFields)) {
    $this
      ->setMetadataXmpFields($this->acquiadam
      ->getActiveXmpFields());
  }
  return $this->xmpMetadataFields;
}