You are here

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

Gets the path to this asset within the DAM web interface.

Return value

string The URL to the asset within the DAM web interface.

1 call to AcquiaDAM_Assets_AbstractAsset::getDAMPath()
AcquiaDAM_Assets_AbstractAsset::getDAMUrl in src/AcquiaDAM/AcquiaDAM_Assets_AbstractAsset.inc
Gets the URL to the asset within the DAM provider.
1 method overrides AcquiaDAM_Assets_AbstractAsset::getDAMPath()
AcquiaDAM_Assets_Folder::getDAMPath in src/AcquiaDAM/AcquiaDAM_Assets_Folder.inc
Gets the path to this asset within the DAM web interface.

File

src/AcquiaDAM/AcquiaDAM_Assets_AbstractAsset.inc, line 220

Class

AcquiaDAM_Assets_AbstractAsset
Abstract class base for Acquia DAM assets.

Code

public function getDAMPath() {
  $this
    ->get();
  return sprintf('cloud/#folder/%d#%d', $this->asset['folder']['id'], $this->asset['id']);
}