Skip to content
Snippets Groups Projects
Commit bee7f37e authored by Project Update Bot's avatar Project Update Bot Committed by Malcolm Young
Browse files

Issue #3407476 by Project Update Bot: Automated Drupal 10 compatibility fixes

parent b8d844eb
Branches 8.x-1.x
No related merge requests found
name: CKEditor Date Time
type: module
description: Adds a button for adding a <time> element.
core: 8.x
core_version_requirement: '^8 || ^9'
core_version_requirement: ^9.3 || ^10
package: CKEditor
dependencies:
- drupal:ckeditor
......@@ -98,7 +98,7 @@ class DateTime extends CKEditorPluginBase implements ContainerFactoryPluginInter
return [
'Datetime' => [
'label' => $this->t('Datetime'),
'image' => drupal_get_path('module', 'ckeditor_datetime') . '/js/plugins/datetime/icons/datetime.png',
'image' => \Drupal::service('extension.list.module')->getPath('ckeditor_datetime') . '/js/plugins/datetime/icons/datetime.png',
],
];
}
......@@ -109,7 +109,7 @@ class DateTime extends CKEditorPluginBase implements ContainerFactoryPluginInter
public function getFile() {
// Make sure that the path to the plugin.js matches the file structure of
// the CKEditor plugin you are implementing.
return drupal_get_path('module', 'ckeditor_datetime') . '/js/plugins/datetime/plugin.js';
return \Drupal::service('extension.list.module')->getPath('ckeditor_datetime') . '/js/plugins/datetime/plugin.js';
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment