You are here

public function JuiceboxFormatterInterface::getLibrary in Juicebox HTML5 Responsive Image Galleries 8.3

Same name and namespace in other branches
  1. 8.2 src/JuiceboxFormatterInterface.php \Drupal\juicebox\JuiceboxFormatterInterface::getLibrary()

Get/detect the details of a Juicebox javascript library without loading it.

This is essentially a wrapper for libraries_detect() with some caching added. It also allows library info to be fetched independently from the currently loaded version if needed (e.g., to accomodate XML requests that don't come from this site).

Parameters

bool $force_local: Whether-or-not to force detection of the LOCALLY installed Juicebox library details. If FALSE Libraries API detection may be bypased if library version details can be detected through the URL.

bool $reset: Whether-or-not to bypass and reset any caching information.

Return value

array An associative array of the library information.

1 method overrides JuiceboxFormatterInterface::getLibrary()
JuiceboxFormatter::getLibrary in src/JuiceboxFormatter.php
Get/detect the details of a Juicebox javascript library without loading it.

File

src/JuiceboxFormatterInterface.php, line 52

Class

JuiceboxFormatterInterface
Interface definition for a Juicebox Formatter service.

Namespace

Drupal\juicebox

Code

public function getLibrary($force_local = FALSE, $reset = FALSE);