You are here

function media_acquiadam_get_asset in Media: Acquia DAM 7

Load an Asset.

Parameters

int|array $id: An asset ID or the asset data.

array $depends: An array of dependencies to pass to the class constructors.

bool $skipCache: TRUE to skip the cache mechanism.

Return value

AcquiaDAM_Assets_AbstractAsset|false A AcquiaDAM_Assets_AbstractAsset object or FALSE.

4 calls to media_acquiadam_get_asset()
AcquiaDAMStreamWrapper::getAssetById in includes/AcquiaDAMStreamWrapper.inc
Get an asset by ID.
media_acquiadam_browser_choose_asset_form_save_assets in modules/media_acquiadam_browser/includes/media_acquiadam_browser.forms.inc
Create Drupal file entities given an array of asset IDs.
media_acquiadam_browser_get_search_results in modules/media_acquiadam_browser/includes/media_acquiadam_browser.helpers.inc
Perform a search against the API.
media_acquiadam_file_to_asset in includes/media_acquiadam.helpers.inc
Given a file return the associated asset.

File

includes/media_acquiadam.helpers.inc, line 129
Helper functions for working with Acquia DAM within Drupal.

Code

function media_acquiadam_get_asset($id, array $depends = [], $skipCache = FALSE) {
  return media_acquiadam_get_helper('asset', $id, $depends, $skipCache);
}