public function CKEditorPluginContextualInterface::isEnabled

Checks if this plugin should be enabled based on the editor configuration.

The editor's settings can be found in $editor->settings.

Parameters

\Drupal\editor\Plugin\Core\Entity\Editor $editor: A configured text editor object.

Return value

bool

2 methods override CKEditorPluginContextualInterface::isEnabled()
LlamaContextual::isEnabled in drupal/core/modules/ckeditor/tests/modules/lib/Drupal/ckeditor_test/Plugin/CKEditorPlugin/LlamaContextual.php
Implements \Drupal\ckeditor\Plugin\CKEditorPluginContextualInterface::isEnabled().
LlamaContextualAndButton::isEnabled in drupal/core/modules/ckeditor/tests/modules/lib/Drupal/ckeditor_test/Plugin/CKEditorPlugin/LlamaContextualAndButton.php
Implements \Drupal\ckeditor\Plugin\CKEditorPluginContextualInterface::isEnabled().

File

drupal/core/modules/ckeditor/lib/Drupal/ckeditor/CKEditorPluginContextualInterface.php, line 37
Contains \Drupal\ckeditor\CKEditorPluginContextualInterface.

Class

CKEditorPluginContextualInterface
Defines an interface for contextually enabled CKEditor plugins.

Namespace

Drupal\ckeditor

Code

public function isEnabled(Editor $editor);