public function BynderApiTest::getAssetUsages in Bynder 4.0.x
Same name and namespace in other branches
- 8.3 tests/modules/bynder_test_module/src/BynderApiTest.php \Drupal\bynder_test_module\BynderApiTest::getAssetUsages()
Retrieves all asset usage for a specific asset.
Parameters
$asset_id: Bynder asset ID.
Return value
mixed
Overrides BynderApi::getAssetUsages
File
- tests/
modules/ bynder_test_module/ src/ BynderApiTest.php, line 234
Class
- BynderApiTest
- Bynder API test service.
Namespace
Drupal\bynder_test_moduleCode
public function getAssetUsages($asset_id) {
return $this->state
->get('bynder.bynder_add_usage');
}