Skip to content
Snippets Groups Projects

Feature/istwcms 5257 ibiki drupal 9 3

Merged Igor Biki requested to merge feature/ISTWCMS-5257-ibiki-drupal-9-3 into 1.0.x
7 files
+ 32
109
Compare changes
  • Side-by-side
  • Inline
Files
7
<?php
/**
* @file
* Contains \Drupal\ckeditor_a11ychecker\Plugin\CKEditorPlugin\A11yCheckerPlugin.
*/
namespace Drupal\uw_ckeditor_plugins\Plugin\CKEditorPlugin;
use Drupal\ckeditor\CKEditorPluginBase;
use Drupal\editor\Entity\Editor;
use phpDocumentor\Reflection\Types\This;
/**
* Defines the "a11ychecker" plugin.
@@ -20,6 +14,7 @@ use phpDocumentor\Reflection\Types\This;
* )
*/
class A11yCheckerPlugin extends CKEditorPluginBase {
/**
* {@inheritdoc}
*/
@@ -45,29 +40,19 @@ class A11yCheckerPlugin extends CKEditorPluginBase {
* {@inheritdoc}
*/
public function getButtons() {
return array(
'A11ychecker' => array(
'label' => t('Accessibility Checker'),
'image' => $this->getModulePath() . '/libraries/a11ychecker/icons/a11ychecker.png',
),
);
return [
'A11ychecker' => [
'label' => $this->t('Accessibility Checker'),
'image' => $this->getModulePath('uw_ckeditor_plugins') . '/libraries/a11ychecker/icons/a11ychecker.png',
],
];
}
/**
* {@inheritdoc}
*/
public function getFile() {
return $this->getModulePath() . '/libraries/a11ychecker/plugin.js';
}
/**
* Returns module path.
*
* @return string
* Module path.
*/
public function getModulePath() {
return drupal_get_path('module', 'uw_ckeditor_plugins');
return $this->getModulePath('uw_ckeditor_plugins') . '/libraries/a11ychecker/plugin.js';
}
}
Loading