You are here

public function AssetDataInterface::get in Media: Acquia DAM 8

Returns data stored for an asset.

Parameters

int $assetID: The ID of the asset that data is associated with.

string $name: (optional) The name of the data key.

Return value

mixed|array The requested asset data, depending on the arguments passed:

  • If $name was provided then the stored value is returned, or NULL if no value was found.
  • If no $name was provided then all data will be returned for the given asset if found.
1 method overrides AssetDataInterface::get()
AssetData::get in src/AssetData.php
Returns data stored for an asset.

File

src/AssetDataInterface.php, line 25

Class

AssetDataInterface
Defines the asset data service interface.

Namespace

Drupal\media_acquiadam

Code

public function get($assetID, $name = NULL);