You are here

public function BynderMediaApi::getObjectById in Bynder 7

File

includes/BynderMediaApi.inc, line 59
Manages the Bynder media browser functionality

Class

BynderMediaApi

Code

public function getObjectById($id) {
  try {
    $result = $this
      ->getAssetBankManager()
      ->getMediaInfo($id)
      ->wait();
    return $result;
  } catch (Exception $e) {
    watchdog('bynder', $e
      ->getMessage());
    return false;
  }
}