Completed
Push — 8.x-1.x ( cf6f5e...8506e0 )
by Janez
02:28
created

crop.api.php ➔ hook_crop_entity_provider_info_alter()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
/**
4
 * @file
5
 * Hooks related to crop API.
6
 */
7
8
/**
9
 * @addtogroup hooks
10
 * @{
11
 */
12
13
/**
14
 * Alter the information provided in \Drupal\crop\Annotation\CropEntityProvider.
15
 *
16
 * @param array $providers
17
 *   The array of provider plugins, keyed by the machine-readable name.
18
 */
19
function hook_crop_entity_provider_info_alter(array &$providers) {
20
  $providers['media']['label'] = t('Super fancy provider for media entity!');
21
}
22
23
/**
24
 * @} End of "addtogroup hooks".
25
 */
26