You are here

public function BynderApi::getAssetUsages in Bynder 8.3

Same name and namespace in other branches
  1. 8 src/BynderApi.php \Drupal\bynder\BynderApi::getAssetUsages()
  2. 8.2 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

1 method overrides BynderApi::getAssetUsages()
BynderApiTest::getAssetUsages in tests/modules/bynder_test_module/src/BynderApiTest.php
Retrieves all asset usage for a specific asset.

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();
}