Commit f7106a33 authored by git's avatar git Committed by Damien McKenna
Browse files

Issue #3147406 by NickDickinsonWilde, Project Update Bot, DamienMcKenna,...

Issue #3147406 by NickDickinsonWilde, Project Update Bot, DamienMcKenna, randallnet: Automated Drupal 9 compatibility fixes.
parent 4df24994
Loading
Loading
Loading
Loading

composer.json

0 → 100644
+26 −0
Original line number Diff line number Diff line
{
  "name": "drupal/exif",
  "description": "Display image metadata (EXIF and IPTC).",
  "type": "drupal-module",
  "license": "GPL-2.0-or-later",
  "keywords": [
    "media"
  ],
  "homepage": "https://www.drupal.org/project/exif",
  "authors": [
    {
      "name": "See contributors",
      "homepage": "https://www.drupal.org/node/90667/committers",
      "role": "Developer"
    }
  ],
  "minimum-stability": "dev",
  "support": {
    "issues": "https://www.drupal.org/project/issues/exif",
    "source": "https://git.drupalcode.org/project/exif",
    "docs": "https://www.drupal.org/docs/8/modules/exif"
  },
  "require": {
    "drupal/core": "^9"
  }
}
+2 −2
Original line number Diff line number Diff line
@@ -393,7 +393,7 @@ function __drush_exif_entity_import($entity_type, $type, $uid, $field, $file, $l
        'revision' => 1,
        'status' => TRUE,
        'promote' => 0,
        'created' => REQUEST_TIME,
        'created' => \Drupal::time()->getRequestTime(),
        'langcode' => $langcode,
        $field => [
          'target_id' => $file_temp->id(),
@@ -413,7 +413,7 @@ function __drush_exif_entity_import($entity_type, $type, $uid, $field, $file, $l
        'uid' => $uid,
        'revision' => 1,
        'status' => TRUE,
        'created' => REQUEST_TIME,
        'created' => \Drupal::time()->getRequestTime(),
        'langcode' => $langcode,
        $field => [
          'target_id' => $file_temp->id(),
+7 −8
Original line number Diff line number Diff line
configure: exif.config
core: 8.x
dependencies:
  - taxonomy
  - image
description: "Display image metadata (exif and iptc)."
name: Exif
package: Media
description: "Display image metadata (exif and iptc)."
configure: exif.config
type: module
core_version_requirement: ^8 || ^9
package: Media
core_version_requirement: ^9
dependencies:
  - drupal:taxonomy
  - drupal:image
+1 −1
Original line number Diff line number Diff line
@@ -244,7 +244,7 @@ class ExifSettingsController extends ControllerBase {
   *   HTML Fragment with a sample image and metadata.
   */
  public function showSample() {
    $sampleImageFilePath = drupal_get_path('module', 'exif') . '/sample.jpg';
    $sampleImageFilePath = \Drupal::service('extension.list.module')->getPath('exif') . '/sample.jpg';
    $exif = ExifFactory::getExifInterface();
    $fullmetadata = $exif->readMetadataTags($sampleImageFilePath);
    $html = '<table class="metadata-table"><tbody>';
+1 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ class ExifSettingsForm extends ConfigFormBase implements ContainerInjectionInter
  public static function create(ContainerInterface $container) {
    return new static(
      $container->get('config.factory'),
      $container->get('entity.manager')
      $container->get('entity_type.manager')
    );
  }

Loading