You are here

public function AppService::getAjaxPlugins in Forena Reports 8

Returns the list of ajax plugins.

Return value

array

1 method overrides AppService::getAjaxPlugins()
TestingAppService::getAjaxPlugins in tests/src/Unit/Mock/TestingAppService.php
Returns the list of ajax plugins.

File

src/AppService.php, line 69

Class

AppService

Namespace

Drupal\forena

Code

public function getAjaxPlugins() {
  $plugin_map = [];
  $pm = \Drupal::service('frxplugin.manager.ajax');
  $plugins = $pm
    ->getDefinitions();
  foreach ($plugins as $plugin) {

    // Find out if plugin is defined.
    $id = $plugin['id'];
    $class = $plugin['class'];
    $plugin_map[$id] = $class;
  }
  return $plugin_map;
}