Commit 56b76147 authored by Steffen Schlaer's avatar Steffen Schlaer
Browse files

Issue #3289104 by IT-Cru, Project Update Bot: Automated Drupal 10 compatibility fixes

parent 73e49b42
Loading
Loading
Loading
Loading
+16 −1
Original line number Diff line number Diff line
/**
 * @file
 * Plyr behaviors.
 */

(function (Drupal) {

  /**
   * Setup Plyr players for all rendered playable elements.
   */
  Drupal.behaviors.plyrSetupPlayers = {
    attach: function (context, settings) {
      const players = Plyr.setup('.plyr-player');
    }
  }
}(Drupal));
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ configure: plyr.settings
package: Media

type: module
core_version_requirement: ^8.8 || ^9
core_version_requirement: ^8.8 || ^9 || ^10

dependencies:
  - drupal:media
+10 −4
Original line number Diff line number Diff line
plyr:
  version: 3.6.12
  remote: https://github.com/sampotts/plyr
  license:
    name: MIT
    url: https://github.com/sampotts/plyr/blob/master/license.md
    gpl-compatible: true
  version: 3.7.3
  css:
    theme:
      https://cdn.plyr.io/3.6.12/plyr.css: { type: external, minified: true }
    component:
      https://cdn.plyr.io/3.7.3/plyr.css: { type: external, minified: true, attributes: { defer: true, async: true } }
  js:
    https://cdn.plyr.io/3.6.12/plyr.js: { type: external, minified: true }
    https://cdn.plyr.io/3.7.3/plyr.js: { type: external, minified: true }

plyr-player:
  js:
    js/plyr-player.js: {}
  dependencies:
    - core/drupal
    - plyr/plyr
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ class EnableModuleTest extends BrowserTestBase {
  /**
   * {@inheritdoc}
   */
  protected function setUp() {
  protected function setUp(): void {
    parent::setUp();
    $this->user = $this->drupalCreateUser(['administer site configuration']);
  }