class A11yCheckerPlugin in CKEditor Accessibility Checker 7
Same name and namespace in other branches
- 8 src/Plugin/CKEditorPlugin/A11yCheckerPlugin.php \Drupal\ckeditor_a11ychecker\Plugin\CKEditorPlugin\A11yCheckerPlugin
- 2.0.x src/Plugin/CKEditorPlugin/A11yCheckerPlugin.php \Drupal\ckeditor_a11ychecker\Plugin\CKEditorPlugin\A11yCheckerPlugin
Defines the "a11ychecker" plugin.
Plugin annotation
@CKEditorPlugin(
id = "a11ychecker",
label = @Translation("Accessibility Checker")
)
Hierarchy
- class \Drupal\ckeditor_a11ychecker\Plugin\CKEditorPlugin\A11yCheckerPlugin extends \Drupal\ckeditor\CKEditorPluginBase
Expanded class hierarchy of A11yCheckerPlugin
File
- src/
Plugin/ CKEditorPlugin/ A11yCheckerPlugin.php, line 16
Namespace
Drupal\ckeditor_a11ychecker\Plugin\CKEditorPluginView source
class A11yCheckerPlugin extends CKEditorPluginBase {
/**
* {@inheritdoc}
*/
public function getDependencies(Editor $editor) {
return [
'balloonpanel',
];
}
/**
* {@inheritdoc}
*/
public function getLibraries(Editor $editor) {
return [
'core/drupal.jquery',
];
}
/**
* {@inheritdoc}
*/
public function getConfig(Editor $editor) {
return [];
}
/**
* {@inheritdoc}
*/
public function getButtons() {
return array(
'A11ychecker' => array(
'label' => t('Accessibility Checker'),
'image' => base_path() . 'libraries/a11ychecker/icons/a11ychecker.png',
),
);
}
/**
* {@inheritdoc}
*/
public function getFile() {
return base_path() . 'libraries/a11ychecker/plugin.js';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
A11yCheckerPlugin:: |
public | function | ||
A11yCheckerPlugin:: |
public | function | ||
A11yCheckerPlugin:: |
public | function | ||
A11yCheckerPlugin:: |
public | function | ||
A11yCheckerPlugin:: |
public | function |