class LlamaCss
Defines a "LlamaCss" plugin, with an associated "llama" CSS.
Plugin annotation
@CKEditorPlugin(
id = "llama_css",
label = @Translation("Llama CSS")
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\ckeditor_test\Plugin\CKEditorPlugin\Llama extends \Drupal\ckeditor\CKEditorPluginInterface, \Drupal\Core\Plugin\ContainerFactoryPluginInterface uses \Drupal\Core\StringTranslation\StringTranslationTrait implements \Drupal\Component\Plugin\PluginBase
- class \Drupal\ckeditor_test\Plugin\CKEditorPlugin\LlamaCss extends \Drupal\ckeditor\CKEditorPluginButtonsInterface, \Drupal\ckeditor\CKEditorPluginCssInterface implements \Drupal\ckeditor_test\Plugin\CKEditorPlugin\Llama
- class \Drupal\ckeditor_test\Plugin\CKEditorPlugin\Llama extends \Drupal\ckeditor\CKEditorPluginInterface, \Drupal\Core\Plugin\ContainerFactoryPluginInterface uses \Drupal\Core\StringTranslation\StringTranslationTrait implements \Drupal\Component\Plugin\PluginBase
Expanded class hierarchy of LlamaCss
3 string references to 'LlamaCss'
- CKEditorPluginManagerTest::testCssFiles in core/
modules/ ckeditor/ tests/ src/ Kernel/ CKEditorPluginManagerTest.php - Tests the iframe instance CSS files of plugins.
- CKEditorPluginManagerTest::testEnabledPlugins in core/
modules/ ckeditor/ tests/ src/ Kernel/ CKEditorPluginManagerTest.php - Tests the enabling of plugins.
- CKEditorTest::testBuildContentsCssJSSetting in core/
modules/ ckeditor/ tests/ src/ Kernel/ CKEditorTest.php - Tests CKEditor::buildContentsCssJSSetting().
File
-
core/
modules/ ckeditor/ tests/ modules/ src/ Plugin/ CKEditorPlugin/ LlamaCss.php, line 17
Namespace
Drupal\ckeditor_test\Plugin\CKEditorPluginView source
class LlamaCss extends Llama implements CKEditorPluginButtonsInterface, CKEditorPluginCssInterface {
/**
* {@inheritdoc}
*/
public function getButtons() {
return [
'LlamaCSS' => [
'label' => $this->t('Insert Llama CSS'),
],
];
}
/**
* {@inheritdoc}
*/
public function getCssFiles(Editor $editor) {
return [
$this->moduleList
->getPath('ckeditor_test') . '/css/llama.css',
];
}
/**
* {@inheritdoc}
*/
public function getFile() {
return $this->moduleList
->getPath('ckeditor_test') . '/js/llama_css.js';
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.