You are here

public function N1EDSelfHosted::getPluginsAvailable in N1ED - Visual editor as CKEditor plugin with Bootstrap support 8.2

2 calls to N1EDSelfHosted::getPluginsAvailable()
N1EDSelfHosted::getSelfHostedConfig in src/Controller/N1EDSelfHosted.php
N1EDSelfHosted::rebuildDependencies in src/Controller/N1EDSelfHosted.php

File

src/Controller/N1EDSelfHosted.php, line 15

Class

N1EDSelfHosted

Namespace

Drupal\n1ed\Controller

Code

public function getPluginsAvailable() : array {
  $plugins = [];
  foreach ($this->plugins as $plugin_name) {
    if (file_exists($this->plugins_folder . $plugin_name)) {
      $plugins[] = $plugin_name;
    }
  }
  return $plugins;
}