You are here

public function BynderApiInterface::addAssetUsage in Bynder 8.3

Same name and namespace in other branches
  1. 8 src/BynderApiInterface.php \Drupal\bynder\BynderApiInterface::addAssetUsage()
  2. 8.2 src/BynderApiInterface.php \Drupal\bynder\BynderApiInterface::addAssetUsage()
  3. 4.0.x src/BynderApiInterface.php \Drupal\bynder\BynderApiInterface::addAssetUsage()

Creates an asset usage entry in Bynder.

Parameters

string $asset_id: Bynder asset ID.

\Drupal\Core\Url $usage_url: Url where the asset is being used (node url).

string $creation_date: Date the asset was added to the page, in the DATE_ISO8601 format.

string $additional_info: Any additional info to be displayed with the entry information.

Return value

mixed

1 method overrides BynderApiInterface::addAssetUsage()
BynderApi::addAssetUsage in src/BynderApi.php
Creates an asset usage entry in Bynder.

File

src/BynderApiInterface.php, line 88

Class

BynderApiInterface
Provides Drupal 8 Bynder API.

Namespace

Drupal\bynder

Code

public function addAssetUsage($asset_id, $usage_url, $creation_date, $additional_info = null);