public function Linebreaks::isEnabled in Wysiwyg Linebreaks 8
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
Overrides CKEditorPluginContextualInterface::isEnabled
File
- src/
Plugin/ CKEditorPlugin/ Linebreaks.php, line 67
Class
- Linebreaks
- Defines the "linebreaks" plugin.
Namespace
Drupal\wysiwyg_linebreaks\Plugin\CKEditorPluginCode
public function isEnabled(Editor $editor) {
// If the module is enabled, this plugin should be enabled.
return TRUE;
}