Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / media_entity_image / media_entity_image.module
index b3d9bbc7f3711e882119cd6b3af051245d859d04..efe5bbc63cfa1f07c036dc34c324d79c84023032 100644 (file)
@@ -1 +1,32 @@
 <?php
+
+/**
+ * @file
+ * Module implementation file.
+ */
+
+use Drupal\Core\Routing\RouteMatchInterface;
+
+/**
+ * Implements hook_help().
+ */
+function media_entity_image_help($route_name, RouteMatchInterface $route_match) {
+  switch ($route_name) {
+    case 'help.page.media_entity_image':
+      $output = '';
+      $output .= '<h3>' . t('About') . '</h3>';
+      $output .= '<p>' . t('The Media Entity Image module allows you to create media bundles that contain images. See the Media Entity module help
+ page for general information on Media entity and how to create and manage media bundles.
+ For more information, see the <a href=":online">online documentation for the Media Entity Image module</a>.', array(':online' => 'https://www.drupal.org/node/2718445')) . '</p>';
+      $output .= '<h3>' . t('Uses') . '</h3>';
+      $output .= '<dl>';
+      $output .= '<dt>' . t('Selecting the Media Entity Image Type provider') . '</dt>';
+      $output .= '<dd>' . t('The Media Entity Image type provider plugin, responsible for adding logic related to this Image media, is selectable when adding media bundles. When first creating Image media bundles, there are no fields on the media entity that store Image files. You can create a bundle without selecting a value for this initially. It can be populated after adding Image fields to the bundle.') . '</dd>';
+      $output .= '<dt>' . t('Populating Media Entity Image media bundles') . '</dt>';
+      $output .= '<dd>' . t('Populate media bundles using Manage fields, Manage form displays, and Manage displays as you would for Content, Contact, or Comment entity types. When an image field is added to the image media bundle the Type Provider Information recognizes it as a Field with source information, at which point the exif data information for that source can be gathered.') . '</dd>';
+      $output .= '<dt>' . t('Managing and Displaying Media Entity Image media bundles') . '</dt>';
+      $output .= '<dd>' . t('The <em>settings</em> and the <em>display</em> of the media entity image media bundles can be configured separately. See the Media Entity module help page for more information on how to manage media bundles and their display.') . '</dd>';
+      $output .= '</dl>';
+      return $output;
+  }
+}