You are here

function toolbar_themes_get_library_names in Toolbar Themes 8

Return all themes libraries.

Return value

array

1 call to toolbar_themes_get_library_names()
toolbar_themes_preprocess_toolbar_themes__toolbar in ./toolbar_themes.module
Implements hook_preprocess_HOOK().

File

./toolbar_themes.module, line 32

Code

function toolbar_themes_get_library_names() {
  $libraries = [];
  $definitions = toolbar_themes_get_theme_definitions();
  foreach ($definitions as $provider => $provider_themes) {
    foreach ($provider_themes as $theme_key => $theme_values) {
      $libraries[$theme_key] = $theme_values['libraries'];
    }
  }
  return $libraries;
}