You are here

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\CKEditorPlugin

Code

public function isEnabled(Editor $editor) {

  // If the module is enabled, this plugin should be enabled.
  return TRUE;
}