public function CKEditorPluginContextualInterface::isEnabled in Drupal 9
Same name and namespace in other branches
- 8 core/modules/ckeditor/src/CKEditorPluginContextualInterface.php \Drupal\ckeditor\CKEditorPluginContextualInterface::isEnabled()
- 10 core/modules/ckeditor/src/CKEditorPluginContextualInterface.php \Drupal\ckeditor\CKEditorPluginContextualInterface::isEnabled()
Checks if this plugin should be enabled based on the editor configuration.
The editor's settings can be retrieved via $editor->getSettings().
Parameters
\Drupal\editor\Entity\Editor $editor: A configured text editor object.
Return value
bool
4 methods override CKEditorPluginContextualInterface::isEnabled()
- DrupalMedia::isEnabled in core/
modules/ media/ src/ Plugin/ CKEditorPlugin/ DrupalMedia.php - Checks if this plugin should be enabled based on the editor configuration.
- Internal::isEnabled in core/
modules/ ckeditor/ src/ Plugin/ CKEditorPlugin/ Internal.php - Checks if this plugin should be enabled based on the editor configuration.
- LlamaContextual::isEnabled in core/
modules/ ckeditor/ tests/ modules/ src/ Plugin/ CKEditorPlugin/ LlamaContextual.php - Checks if this plugin should be enabled based on the editor configuration.
- LlamaContextualAndButton::isEnabled in core/
modules/ ckeditor/ tests/ modules/ src/ Plugin/ CKEditorPlugin/ LlamaContextualAndButton.php - Checks if this plugin should be enabled based on the editor configuration.
File
- core/
modules/ ckeditor/ src/ CKEditorPluginContextualInterface.php, line 40
Class
- CKEditorPluginContextualInterface
- Defines an interface for contextually enabled CKEditor plugins.
Namespace
Drupal\ckeditorCode
public function isEnabled(Editor $editor);