Version 1
[yaffs-website] / web / modules / contrib / crop / crop.api.php
diff --git a/web/modules/contrib/crop/crop.api.php b/web/modules/contrib/crop/crop.api.php
new file mode 100644 (file)
index 0000000..9146749
--- /dev/null
@@ -0,0 +1,25 @@
+<?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".
+ */