You are here

crop.api.php in Crop API 8

Same filename and directory in other branches
  1. 8.2 crop.api.php

Hooks related to crop API.

File

crop.api.php
View source
<?php

/**
 * @file
 * Hooks related to crop API.
 */

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

/**
 * Alter the information provided in \Drupal\crop\Annotation\CropEntityProvider.
 *
 * @param array $providers
 *   The array of provider plugins, keyed by the machine-readable name.
 */
function hook_crop_entity_provider_info_alter(array &$providers) {
  $providers['media']['label'] = t('Super fancy provider for media entity!');
}

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

Functions