You are here

public function BynderMediaApi::getMediaBrands in Bynder 7

Get brands.

File

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

Class

BynderMediaApi

Code

public function getMediaBrands() {
  try {
    $result = $this
      ->getAssetBankManager()
      ->getBrands()
      ->wait();
    return $result;
  } catch (Exception $e) {
    watchdog('bynder', $e
      ->getMessage());
    drupal_set_message(t('Could not retrieve brand list'), 'error');
    return false;
  }
}