You are here

function lazyloader_libraries_info in Image Lazyloader 8

Same name and namespace in other branches
  1. 7.2 lazyloader.module \lazyloader_libraries_info()

Implements hook_libraries_info().

File

./lazyloader.module, line 146
Lazyloader Module.

Code

function lazyloader_libraries_info() {
  $libraries['lazysizes'] = [
    'name' => 'Lazysizes',
    'vendor url' => 'https://afarkas.github.io/lazysizes',
    'download url' => 'https://github.com/aFarkas/lazysizes/archive/master.zip',
    'path' => 'dist',
    'files' => [
      'js' => [
        'lazysizes.js',
      ],
    ],
    'variants' => [
      'minified' => [
        'files' => [
          'js' => [
            'lazysizes.min.js',
          ],
        ],
      ],
    ],
  ];
  return $libraries;
}