Commit d605f405 authored by Balint Pekker's avatar Balint Pekker Committed by Mateu Aguiló Bosch
Browse files

Issue #3301118 by balintpekker, mglaman, nkoporec: Drupal 10 compatibility

parent bed4bd9d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@ name: Environment indicator
type: module
description: Adds a color indicator for the different environments.
package: Development
core_version_requirement: ^8.8 || ^9
core_version_requirement: ^9.2 || ^10

scripts:
  - js/environment_indicator.js
+2 −1
Original line number Diff line number Diff line
@@ -8,4 +8,5 @@ drupal.environment_indicator:
    component:
      css/environment_indicator.css: {}
  dependencies:
    - core/jquery.once
    - core/jquery
    - core/once
+3 −3
Original line number Diff line number Diff line
(function ($) {
(function ($, Drupal, once) {

  "use strict";

@@ -39,7 +39,7 @@

  Drupal.behaviors.environmentIndicatorTinycon = {
    attach: function (context, settings) {
      $('html').once('env-ind-tinycon').each(function() {
      $(once('env-ind-tinycon', 'html', context)).each(function() {
        if (typeof(settings.environmentIndicator) != 'undefined' &&
          typeof(settings.environmentIndicator.addFavicon) != 'undefined' &&
          settings.environmentIndicator.addFavicon) {
@@ -54,4 +54,4 @@
    }
  }

})(jQuery);
})(jQuery, Drupal, once);
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@ name: Environment indicator UI
type: module
description: Provides a UI for environment indicator toolbar configurations.
package: Development
core_version_requirement: ^8.8 || ^9
core_version_requirement: ^9.2 || ^10
dependencies:
  - environment_indicator:environment_indicator

+2 −0
Original line number Diff line number Diff line
@@ -54,6 +54,8 @@ class EnvironmentIndicatorForm extends EntityForm {
  }

  /**
   * {@inheritdoc}
   *
   * Save your config entity.
   *
   * There will eventually be default code to rely on here, but it doesn't exist