You are here

function hook_bynder_media_update_alter in Bynder 4.0.x

Allows modules to alter the media entity based on updated bynder metadata.

Parameters

\Drupal\media\MediaInterface $media: The media entity.

array $item: The raw bynder metadata about the media asset.

bool $has_changed: Must be set to TRUE when making changes to the media entity.

2 invocations of hook_bynder_media_update_alter()
Bynder::ensureMetadata in src/Plugin/media/Source/Bynder.php
Ensures the given media entity has Bynder metadata information in place.
BynderService::updateMediaEntities in src/BynderService.php
Updates a set of media entities based on the remote metadata information.

File

./bynder.api.php, line 48
Hooks related to Bynder.

Code

function hook_bynder_media_update_alter(MediaInterface $media, array $item, &$has_changed) {
}