You are here

function google_webfont_loader_api_library_info_build in Webfont Loader 8

Implements hook_library_info_build().

File

./google_webfont_loader_api.module, line 20
Google Webfont Loader API primary file.

Code

function google_webfont_loader_api_library_info_build() {
  $library['fonts'] = array(
    'css' => [],
    'js' => [],
    'drupalSettings' => [],
  );
  $css = _google_webfont_loader_api_add_css();
  foreach ($css as $key => $css_file) {
    $library['fonts']['css']['component']["/{$css_file}"] = array(
      'basename' => $css_file,
    );
  }
  return $library;
}