You are here

protected function N1EDEcosystemCKEditorPlugin::isInstalled in N1ED - Visual editor as CKEditor plugin with Bootstrap support 8

2 calls to N1EDEcosystemCKEditorPlugin::isInstalled()
N1EDEcosystemCKEditorPlugin::getButtons in src/Plugin/N1EDEcosystemCKEditorPlugin.php
Returns the buttons that this plugin provides, along with metadata.
N1EDEcosystemCKEditorPlugin::settingsForm in src/Plugin/N1EDEcosystemCKEditorPlugin.php
Returns a settings form to configure this CKEditor plugin.

File

src/Plugin/N1EDEcosystemCKEditorPlugin.php, line 208

Class

N1EDEcosystemCKEditorPlugin
Defines plugin.

Namespace

Drupal\n1ed\Plugin

Code

protected function isInstalled() {
  return file_exists($_SERVER['DOCUMENT_ROOT'] . '/libraries/' . $this
    ->getPluginName());
}