You are here

function image_widget_crop_libraries_info in Image Widget Crop 8

Same name and namespace in other branches
  1. 8.2 image_widget_crop.module \image_widget_crop_libraries_info()

Implements hook_libraries_info().

File

./image_widget_crop.module, line 44
Contains image_widget_crop.module.

Code

function image_widget_crop_libraries_info() {
  $libraries = [
    'cropper' => [
      'name' => 'cropper',
      'vendor url' => 'https://github.com/fengyuanchen/cropper',
      'download url' => 'https://cdnjs.com/libraries/cropper',
      'version arguments' => [
        'file' => 'cropper.min.js',
        'pattern' => '/Cropper v(.*)/',
        'lines' => 2,
      ],
      'files' => [
        'js' => [
          'cropper.min.js' => [],
        ],
        'css' => [
          'cropper.min.css' => [],
        ],
      ],
    ],
  ];
  return $libraries;
}