diff --git a/DEVELOPING.md b/DEVELOPING.md index b215267..6e3eeeb 100644 --- a/DEVELOPING.md +++ b/DEVELOPING.md @@ -1,4 +1,8 @@ # Developing -* Issues should be filed at http://drupal.org/project/issues/media_entity_image -* Pull requests can be made against https://github.com/drupal-media/media_entity_image/pulls +* Issues should be filed at [Drupal.org]. +* Code changes can be submitted in the patch form and uploaded to the Drupal.org + issue or as a [GitHub pull request]. + +[Drupal.org]: http://drupal.org/project/issues/media_entity_image +[GitHub pull request]: https://github.com/drupal-media/media_entity_image/pulls diff --git a/media_entity_image.module b/media_entity_image.module index 87d3874..efe5bbc 100644 --- a/media_entity_image.module +++ b/media_entity_image.module @@ -1,4 +1,5 @@ ' . t('About') . ''; - $output .= '

' . t('The Media Entity Image module allows you to create media bundles that contain images. See the Media Entity module help + $output .= '

' . 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 online documentation for the Media Entity Image module.', array(':online' => 'https://www.drupal.org/node/2718445')) . '

'; $output .= '

' . t('Uses') . '

'; - $output .= '
'; - $output .= '
' . t('Selecting the Media Entity Image Type provider') . '
'; - $output .= '
' . 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.') . '
'; - $output .= '
' . t('Populating Media Entity Image media bundles') . '
'; - $output .= '
' . 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.') . '
'; - $output .= '
' . t('Managing and Displaying Media Entity Image media bundles') . '
'; - $output .= '
' . t('The settings and the display 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.') . '
'; - $output .= '
'; + $output .= '
'; + $output .= '
' . t('Selecting the Media Entity Image Type provider') . '
'; + $output .= '
' . 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.') . '
'; + $output .= '
' . t('Populating Media Entity Image media bundles') . '
'; + $output .= '
' . 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.') . '
'; + $output .= '
' . t('Managing and Displaying Media Entity Image media bundles') . '
'; + $output .= '
' . t('The settings and the display 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.') . '
'; + $output .= '
'; return $output; - break; } } diff --git a/src/Plugin/EntityBrowser/Widget/Upload.php b/src/Plugin/EntityBrowser/Widget/Upload.php index 4ede1f3..97551b7 100644 --- a/src/Plugin/EntityBrowser/Widget/Upload.php +++ b/src/Plugin/EntityBrowser/Widget/Upload.php @@ -80,7 +80,9 @@ class Upload extends FileUpload { $images = $this->prepareEntities($form, $form_state); array_walk( $images, - function (MediaInterface $media) { $media->save(); } + function (MediaInterface $media) { + $media->save(); + } ); $this->selectEntities($images, $form_state); diff --git a/src/Plugin/MediaEntity/Type/Image.php b/src/Plugin/MediaEntity/Type/Image.php index 09b9655..e2fab5b 100644 --- a/src/Plugin/MediaEntity/Type/Image.php +++ b/src/Plugin/MediaEntity/Type/Image.php @@ -26,14 +26,14 @@ class Image extends MediaTypeBase { /** * The image factory service.. * - * @var \Drupal\Core\Image\ImageFactory; + * @var \Drupal\Core\Image\ImageFactory */ protected $imageFactory; /** * The exif data. * - * @var array. + * @var array */ protected $exif;