You are here

function media_acquiadam_image_style_url in Media: Acquia DAM 7

Returns a Drupal image style URI for the given asset.

Does not necessarily mean the asset is available to Drupal at this URI.

Parameters

AcquiaDAM_Assets_AbstractAsset $asset: The asset to return a URI for.

Return value

string The URI.

File

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

Code

function media_acquiadam_image_style_url(AcquiaDAM_Assets_AbstractAsset $asset) {
  return vsprintf('acquiadam://%s/%d', [
    $asset
      ->getType(),
    $asset['id'],
  ]);
}