A11yCheckerPlugin.php in CKEditor Accessibility Checker 7
File
src/Plugin/CKEditorPlugin/A11yCheckerPlugin.php
View source
<?php
namespace Drupal\ckeditor_a11ychecker\Plugin\CKEditorPlugin;
use Drupal\ckeditor\CKEditorPluginBase;
use Drupal\editor\Entity\Editor;
class A11yCheckerPlugin extends CKEditorPluginBase {
public function getDependencies(Editor $editor) {
return [
'balloonpanel',
];
}
public function getLibraries(Editor $editor) {
return [
'core/drupal.jquery',
];
}
public function getConfig(Editor $editor) {
return [];
}
public function getButtons() {
return array(
'A11ychecker' => array(
'label' => t('Accessibility Checker'),
'image' => base_path() . 'libraries/a11ychecker/icons/a11ychecker.png',
),
);
}
public function getFile() {
return base_path() . 'libraries/a11ychecker/plugin.js';
}
}