You are here

public function AppService::getContextPlugins in Forena Reports 8

Returns the list of context plugins.

Return value

array

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

File

src/AppService.php, line 87

Class

AppService

Namespace

Drupal\forena

Code

public function getContextPlugins() {
  $plugin_map = [];
  $pm = \Drupal::service('frxplugin.manager.context');
  $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;
}