Skip to content
Snippets Groups Projects
Commit 0a5f8acc authored by Paris Liakos's avatar Paris Liakos
Browse files

Fix variable name in PhotoswipeAssetsManager::attach()

parent 591547da
No related branches found
Tags 7.x-1.0-alpha4
No related merge requests found
......@@ -40,12 +40,12 @@ class PhotoswipeAssetsManager implements PhotoswipeAssetsManagerInterface {
// We only need to load only once per pace.
if (!$this->attached) {
// Add the library of Photoswipe assets
$attachments['#attached']['library'][] = 'photoswipe/photoswipe';
$element['#attached']['library'][] = 'photoswipe/photoswipe';
// Load initialization file
$attachments['#attached']['library'][] = 'photoswipe/photoswipe.init';
$element['#attached']['library'][] = 'photoswipe/photoswipe.init';
// Add photoswipe js settings.
$attachments['#attached']['drupalSettings']['photoswipe']['options'] = $this->config->get('options');
$element['#attached']['drupalSettings']['photoswipe']['options'] = $this->config->get('options');
$this->attached = TRUE;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment