You are here

public function ElevateZoomPlusManager::attachAlter in ElevateZoom Plus 7

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

Implements hook_blazy_attach_alter().

File

src/ElevateZoomPlusManager.php, line 173

Class

ElevateZoomPlusManager
Provides ElevateZoom Plus library methods mainly for hooks.

Namespace

Drupal\elevatezoomplus

Code

public function attachAlter(array &$load, array $attach = []) {
  $load['js'][] = [
    'data' => [
      'elevateZoomPlus' => ElevateZoomPlus::defaultSettings(),
    ],
    'type' => 'setting',
  ];
  $load['library'][] = [
    'elevatezoomplus',
    'load',
  ];
}