You are here

public function ElevateZoomPlusManager::buildAlter in ElevateZoom Plus 7

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

Sets ElevateZoomPlus #pre_render callback.

File

src/ElevateZoomPlusManager.php, line 164

Class

ElevateZoomPlusManager
Provides ElevateZoom Plus library methods mainly for hooks.

Namespace

Drupal\elevatezoomplus

Code

public function buildAlter(array &$build, array $settings = []) {
  if ($this
    ->isApplicable($settings)) {
    $build['#pre_render'][] = 'elevatezoomplus_pre_render_build';
  }
}