You are here

public function AppService::getRendererPlugins in Forena Reports 8

Returns the list of Renderer plugins

Return value

array

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

File

src/AppService.php, line 51

Class

AppService

Namespace

Drupal\forena

Code

public function getRendererPlugins() {
  $render_map = [];
  $pm = \Drupal::service('frxplugin.manager.renderer');
  $plugins = $pm
    ->getDefinitions();
  foreach ($plugins as $renderer) {

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