You are here

public function BynderMediaApi::getMediaList in Bynder 7

Get Media list.

File

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

Class

BynderMediaApi

Code

public function getMediaList($query = null) {
  $query['page'] = isset($query['page']) ? $query['page'] : 1;
  try {
    $result = $this
      ->getAssetBankManager()
      ->getMediaList($query)
      ->wait();
    return $result;
  } catch (Exception $e) {
    watchdog('bynder', $e
      ->getMessage());
    drupal_set_message(t('Could not retrieve search results'), 'error');
    return false;
  }
}