You are here

function forena_library_info_build in Forena Reports 8

Implements hook_library_info_build().

File

./forena.module, line 12

Code

function forena_library_info_build() {
  $libraries = [];
  $skins = \Drupal\forena\ReportManager::instance()
    ->skins();
  foreach ($skins as $skin_name => $skin_label) {
    $skin = \Drupal\forena\Skin::instance($skin_name);
    if ($skin->library) {
      $libraries["skin.{$skin_name}"] = $skin->library;
    }
  }
  return $libraries;
}