diff --git a/src/Plugin/CKEditorPlugin/Quote.php b/src/Plugin/CKEditorPlugin/Quote.php index 0e38862..bd365b4 100644 --- a/src/Plugin/CKEditorPlugin/Quote.php +++ b/src/Plugin/CKEditorPlugin/Quote.php @@ -29,7 +29,7 @@ class Quote extends CKEditorPluginBase { public function getButtons() { // Make sure that the path to the image matches the file structure of // the CKEditor plugin you are implementing. - $path = drupal_get_path('module', 'ckeditor_quote') . '/js/plugins/quote'; + $path = \Drupal::service('extension.list.module')->getPath('ckeditor_quote') . '/js/plugins/quote'; return array( 'quote' => array( 'label' => t('Quote'), @@ -44,7 +44,7 @@ class Quote extends CKEditorPluginBase { 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_quote') . '/js/plugins/quote/plugin.js'; + return \Drupal::service('extension.list.module')->getPath('ckeditor_quote') . '/js/plugins/quote/plugin.js'; } /** diff --git a/ckeditor_quote.info.yml b/ckeditor_quote.info.yml index 1a3c319..cef9c0b 100644 --- a/ckeditor_quote.info.yml +++ b/ckeditor_quote.info.yml @@ -1,5 +1,4 @@ name: CKEditor Quote type: module description: 'Provides a CKEditor plugin to embed a quote with text and author.' -core: '8.x' -core_version_requirement: ^8 || ^9 +core_version_requirement: ^9.3 || ^10