You are here

public function BynderApiTest::getAssetUsages in Bynder 8.3

Same name and namespace in other branches
  1. 4.0.x 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_module

Code

public function getAssetUsages($asset_id) {
  return $this->state
    ->get('bynder.bynder_add_usage');
}