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
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);