function hook_crop_entity_provider_info_alter in Crop API 8
Same name and namespace in other branches
- 8.2 crop.api.php \hook_crop_entity_provider_info_alter()
Alter the information provided in \Drupal\crop\Annotation\CropEntityProvider.
Parameters
array $providers: The array of provider plugins, keyed by the machine-readable name.
1 invocation of hook_crop_entity_provider_info_alter()
- EntityProviderManager::__construct in src/
EntityProviderManager.php - Constructs a new EntityProviderManager.
File
- ./
crop.api.php, line 19 - Hooks related to crop API.
Code
function hook_crop_entity_provider_info_alter(array &$providers) {
$providers['media']['label'] = t('Super fancy provider for media entity!');
}