Skip to content
Snippets Groups Projects
Commit 7306e24a authored by Aaron Armstrong's avatar Aaron Armstrong Committed by Luc Bézier
Browse files

Issue #3299508 by aastrong, Luukyb: D10 patch applied.

parent 7b172f97
Branches commev-alias
No related tags found
1 merge request!3D10 patch applied
......@@ -27,7 +27,7 @@ class Widencollective extends CKEditorPluginBase {
* {@inheritdoc}
*/
public function getFile() {
return drupal_get_path('module', 'widencollective') . '/js/plugins/widencollective/plugins.js';
return \Drupal::service('extension.list.module')->getPath('widencollective') . '/js/plugins/widencollective/plugins.js';
}
/**
......@@ -37,7 +37,7 @@ class Widencollective extends CKEditorPluginBase {
return [
'Widencollective' => [
'label' => $this->t('Widen Collective'),
'image' => drupal_get_path('module', 'widencollective') . '/js/plugins/widencollective/icons/widencollective.png',
'image' => \Drupal::service('extension.list.module')->getPath('widencollective') . '/js/plugins/widencollective/icons/widencollective.png',
],
];
}
......
name: 'Widen Collective'
description: 'Embeds media from your Widen Collective system into Drupal content.'
package: 'User interface'
core: 8.x
core_version_requirement: ^8 || ^9
core_version_requirement: ^9.3 || ^10
configure: widencollective.admin
dependencies:
- drupal:ckeditor
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment