class Llama

Defines the "Llama" plugin, with a CKEditor "llama" feature.

This feature does not correspond to a toolbar button. Because this plugin does not implement the CKEditorPluginContextualInterface nor the CKEditorPluginButtonsInterface interface, there is no way of actually loading this plugin.

Plugin annotation


@CKEditorPlugin(
  id = "llama",
  label = @Translation("Llama")
)

Hierarchy

Expanded class hierarchy of Llama

See also

MetaContextual

MetaButton

MetaContextualAndButton

3 string references to 'Llama'
CKEditorLoadingTest::testLoading in drupal/core/modules/ckeditor/lib/Drupal/ckeditor/Tests/CKEditorLoadingTest.php
Tests loading of CKEditor CSS, JS and JS settings.
CKEditorPluginManagerTest::testEnabledPlugins in drupal/core/modules/ckeditor/lib/Drupal/ckeditor/Tests/CKEditorPluginManagerTest.php
Tests the enabling of plugins.
CKEditorTest::testBuildToolbarJSSetting in drupal/core/modules/ckeditor/lib/Drupal/ckeditor/Tests/CKEditorTest.php
Tests CKEditor::buildToolbarJSSetting().

File

drupal/core/modules/ckeditor/tests/modules/lib/Drupal/ckeditor_test/Plugin/CKEditorPlugin/Llama.php, line 33
Contains \Drupal\ckeditor_test\Plugin\CKEditorPlugin\Llama.

Namespace

Drupal\ckeditor_test\Plugin\CKEditorPlugin
View source
class Llama extends PluginBase implements CKEditorPluginInterface {

  /**
   * Implements \Drupal\ckeditor\Plugin\CKEditorPluginInterface::isInternal().
   */
  function isInternal() {
    return FALSE;
  }

  /**
   * Implements \Drupal\ckeditor\Plugin\CKEditorPluginInterface::getFile().
   */
  function getFile() {
    return drupal_get_path('module', 'ckeditor_test') . '/js/llama.js';
  }

  /**
   * Implements \Drupal\ckeditor\Plugin\CKEditorPluginInterface::getButtons().
   */
  public function getConfig(Editor $editor) {
    return array();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Llama::getConfig public function Implements \Drupal\ckeditor\Plugin\CKEditorPluginInterface::getButtons(). Overrides CKEditorPluginInterface::getConfig
Llama::getFile function Implements \Drupal\ckeditor\Plugin\CKEditorPluginInterface::getFile(). Overrides CKEditorPluginInterface::getFile 3
Llama::isInternal function Implements \Drupal\ckeditor\Plugin\CKEditorPluginInterface::isInternal(). Overrides CKEditorPluginInterface::isInternal
PluginBase::$configuration protected property Configuration information passed into the plugin. 1
PluginBase::$pluginDefinition protected property The plugin implementation definition.
PluginBase::$pluginId protected property The plugin_id.
PluginBase::getPluginDefinition public function Returns the definition of the plugin implementation. Overrides PluginInspectionInterface::getPluginDefinition
PluginBase::getPluginId public function Returns the plugin_id of the plugin instance. Overrides PluginInspectionInterface::getPluginId
PluginBase::__construct public function Constructs a Drupal\Component\Plugin\PluginBase object. 17