crop.api.php in Crop API 8
Same filename and directory in other branches
Hooks related to crop API.
File
crop.api.phpView 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
Name | Description |
---|---|
hook_crop_entity_provider_info_alter | Alter the information provided in \Drupal\crop\Annotation\CropEntityProvider. |