You are here

public function BynderApi::getAssetUsages in Bynder 8.2

Same name and namespace in other branches
  1. 8.3 src/BynderApi.php \Drupal\bynder\BynderApi::getAssetUsages()
  2. 8 src/BynderApi.php \Drupal\bynder\BynderApi::getAssetUsages()
  3. 4.0.x src/BynderApi.php \Drupal\bynder\BynderApi::getAssetUsages()

Retrieves all asset usage for a specific asset.

Parameters

$asset_id: Bynder asset ID.

Return value

mixed

Overrides BynderApiInterface::getAssetUsages

File

src/BynderApi.php, line 437

Class

BynderApi
Bynder API service.

Namespace

Drupal\bynder

Code

public function getAssetUsages($asset_id) {
  return $this
    ->getAssetBankManager()
    ->getUsage([
    'asset_id' => $asset_id,
  ])
    ->wait();
}