Commit 28b51e57 authored by Robert Kasza's avatar Robert Kasza
Browse files

Issue #3292306 by kaszarobert: Drupal 10 compatibility

parent 6188837d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
name: 'AmplitudeJS'
description: 'AmplitudeJS library'
type: module
core_version_requirement: ^8 || ^9
core_version_requirement: ^9.3 || ^10
package: Media
+1 −1
Original line number Diff line number Diff line
@@ -238,7 +238,7 @@ abstract class PlayerBase extends EntityReferenceFormatterBase {

    $id = $this->getHtmlId();

    $moduleRelativePath = drupal_get_path('module', 'amplitudejs_formatters');
    $moduleRelativePath = \Drupal::service('extension.list.module')->getPath('amplitudejs_formatters');
    $theme = $this->getTheme();

    $renderArray = [