webdam-1.0.x-dev/webdam.api.php

webdam.api.php
<?php

/**
 * @file
 * Hooks related to WebDAM.
 */

use Drupal\media\MediaInterface;

/**
 * @addtogroup hooks
 * @{
 */

/**
 * Allows modules to alter the media entity based on updated WebDAM metadata.
 *
 * @param \Drupal\media\MediaInterface $media
 *   The media entity.
 * @param array $item
 *   The raw WebDAM metadata about the media asset.
 * @param bool $has_changed
 *   Must be set to TRUE when making changes to the media entity.
 */
function hook_webdam_media_update_alter(MediaInterface $media, array $item, &$has_changed) {

}

/**
 * @} End of "addtogroup hooks".
 */

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc