You are here

protected function AcquiaDAM_Assets_AbstractAsset::getClient in Media: Acquia DAM 7

Gets the client object for use.

Return value

AcquiaDAM_Client The AcquiaDAM_Client client being used.

File

src/AcquiaDAM/AcquiaDAM_Assets_AbstractAsset.inc, line 104

Class

AcquiaDAM_Assets_AbstractAsset
Abstract class base for Acquia DAM assets.

Code

protected function getClient() {
  if (empty($this->depends['client'])) {
    $this->depends['client'] = AcquiaDAM_API::getClient();
  }
  return $this->depends['client'];
}