function content_browser_library_info_alter in Content Browser 8
Implements hook_library_info_alter().
File
- ./
content_browser.module, line 76 - Contains logic for content_browser.
Code
function content_browser_library_info_alter(&$libraries, $extension) {
// Optionally use the Libraries module to determine our library paths.
if ($extension == 'content_browser' && \Drupal::moduleHandler()
->moduleExists('libraries')) {
$masonry_path = libraries_get_path('masonry') . '/dist/masonry.pkgd.min.js';
$libraries['masonry']['js'] = [
'/' . $masonry_path => [
'minified' => 'true',
],
];
}
}