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