You are here

public function ElevateZoomPlusManager::attachAlter in ElevateZoom Plus 8

Same name and namespace in other branches
  1. 7 src/ElevateZoomPlusManager.php \Drupal\elevatezoomplus\ElevateZoomPlusManager::attachAlter()

Implements hook_blazy_attach_alter().

File

src/ElevateZoomPlusManager.php, line 281

Class

ElevateZoomPlusManager
Provides ElevateZoom Plus library methods mainly for hooks.

Namespace

Drupal\elevatezoomplus

Code

public function attachAlter(array &$load, $attach = []) {
  $load['drupalSettings']['elevateZoomPlus'] = ElevateZoomPlus::defaultSettings();
  $load['library'][] = 'elevatezoomplus/load';
}