Updated to Drupal 8.6.4, which is PHP 7.3 friendly. Also updated HTMLaw library....
[yaffs-website] / web / core / modules / ckeditor / tests / modules / src / Plugin / CKEditorPlugin / Llama.php
1 <?php
2
3 namespace Drupal\ckeditor_test\Plugin\CKEditorPlugin;
4
5 use Drupal\ckeditor\CKEditorPluginInterface;
6 use Drupal\Component\Plugin\PluginBase;
7 use Drupal\editor\Entity\Editor;
8
9 /**
10  * Defines the "Llama" plugin, with a CKEditor "llama" feature.
11  *
12  * This feature does not correspond to a toolbar button. Because this plugin
13  * does not implement the CKEditorPluginContextualInterface nor the
14  * CKEditorPluginButtonsInterface interface, there is no way of actually loading
15  * this plugin.
16  *
17  * @see \Drupal\ckeditor_test\Plugin\CKEditorPlugin\LlamaContextual
18  * @see \Drupal\ckeditor_test\Plugin\CKEditorPlugin\LlamaButton
19  * @see \Drupal\ckeditor_test\Plugin\CKEditorPlugin\LlamaContextualAndButton
20  * @see \Drupal\ckeditor_test\Plugin\CKEditorPlugin\LlamaCss
21  *
22  * @CKEditorPlugin(
23  *   id = "llama",
24  *   label = @Translation("Llama")
25  * )
26  */
27 class Llama extends PluginBase implements CKEditorPluginInterface {
28
29   /**
30    * {@inheritdoc}
31    */
32   public function getDependencies(Editor $editor) {
33     return [];
34   }
35
36   /**
37    * {@inheritdoc}
38    */
39   public function getLibraries(Editor $editor) {
40     return [];
41   }
42
43   /**
44    * {@inheritdoc}
45    */
46   public function isInternal() {
47     return FALSE;
48   }
49
50   /**
51    * {@inheritdoc}
52    */
53   public function getFile() {
54     return drupal_get_path('module', 'ckeditor_test') . '/js/llama.js';
55   }
56
57   /**
58    * {@inheritdoc}
59    */
60   public function getConfig(Editor $editor) {
61     return [];
62   }
63
64 }