You are here

public function AcquiaDAM_Assets_AbstractAsset::getDAMUrl in Media: Acquia DAM 7

Gets the URL to the asset within the DAM provider.

Return value

string The URL to the asset in the DAM provider.

File

src/AcquiaDAM/AcquiaDAM_Assets_AbstractAsset.inc, line 233

Class

AcquiaDAM_Assets_AbstractAsset
Abstract class base for Acquia DAM assets.

Code

public function getDAMUrl() {
  $sub_info = $this
    ->getClient()
    ->getSubscription();
  return vsprintf('https://%s/%s', [
    $sub_info['url'],
    $this
      ->getDAMPath(),
  ]);
}