You are here

public function ElevateZoomPlusManager::isApplicable in ElevateZoom Plus 7

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

Checks if the requirements are met.

1 call to ElevateZoomPlusManager::isApplicable()
ElevateZoomPlusManager::buildAlter in src/ElevateZoomPlusManager.php
Sets ElevateZoomPlus #pre_render callback.

File

src/ElevateZoomPlusManager.php, line 85

Class

ElevateZoomPlusManager
Provides ElevateZoom Plus library methods mainly for hooks.

Namespace

Drupal\elevatezoomplus

Code

public function isApplicable(array $settings) {

  // @todo remove first_uri for _uri for consistency.
  return !empty($settings['elevatezoomplus']) && (!empty($settings['_uri']) || !empty($settings['first_uri']) || !empty($settings['uri']));
}