public function BynderApi::getAssetUsages in Bynder 4.0.x
Same name and namespace in other branches
- 8.3 src/BynderApi.php \Drupal\bynder\BynderApi::getAssetUsages()
- 8 src/BynderApi.php \Drupal\bynder\BynderApi::getAssetUsages()
- 8.2 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 442
Class
- BynderApi
- Bynder API service.
Namespace
Drupal\bynderCode
public function getAssetUsages($asset_id) {
return $this
->getAssetBankManager()
->getUsage([
'asset_id' => $asset_id,
])
->wait();
}