function responsive_image_library_info_alter in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/responsive_image/responsive_image.module \responsive_image_library_info_alter()
Implements hook_library_info_alter().
Load responsive_image.js whenever ajax is added.
File
- core/
modules/ responsive_image/ responsive_image.module, line 508 - Responsive image display formatter for image fields.
Code
function responsive_image_library_info_alter(array &$libraries, $module) {
if ($module === 'core' && isset($libraries['drupal.ajax'])) {
$libraries['drupal.ajax']['dependencies'][] = 'responsive_image/ajax';
}
}