Commit 9d0785eb authored by Sascha Grossenbacher's avatar Sascha Grossenbacher Committed by Sascha Grossenbacher
Browse files

Issue #3277296 by Berdir: Drupal 10 compatibility, require Drupal 9.3

parent d4ed2479
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -39,7 +39,9 @@
            "role": "contributor"
        }
    ],
    "require": {},
    "require": {
        "drupal/core": "^9.3 || ^10"
    },
    "require-dev": {
        "drupal/entity_browser": "^2.5"
    },
+1 −1
Original line number Diff line number Diff line
name: dropzonejs
type: module
description: The Drupal integration for DropzoneJS.
core_version_requirement: ^8.8 || ^9
core_version_requirement: ^9.3 || ^10
package: Media
dependencies:
  - drupal:file
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ function dropzonejs_requirements($phase) {

    // If library is not found, then look in the current profile libraries path.
    if (!$library_found) {
      $profile_path = drupal_get_path('profile', \Drupal::installProfile());
      $profile_path = \Drupal::service('extension.list.profile')->getPath(\Drupal::installProfile());
      $profile_path .= '/libraries/dropzone/dist/min/dropzone.min.js';
      // Is the library found in the current profile libraries path.
      $library_found = file_exists($profile_path);
+2 −2
Original line number Diff line number Diff line
@@ -21,10 +21,10 @@ integration:
  js:
    js/dropzone.integration.js: {}
  dependencies:
    - core/jquery.once
    - core/once
    - core/jquery
    - core/drupal
    - core/drupalSettings
    - core/underscore
    - dropzonejs/dropzonejs

media_library:
+1 −1
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@

        // If DropzoneJS instance is already registered on Element. There is no
        // need to register it again.
        if (selector.once('register-dropzonejs').length !== selector.length) {
        if ($(once('register-dropzonejs', selector)).length !== selector.length) {
          return;
        }

Loading